let’s say if to change vrrep2 priority to 155 on a line to test if this line works. So by the logic, if host A or Host B is pingable AND vrrp2 priority = 90 script line should change the priority to 150 but if priority is already 150 it should do nothing as didn’t meet requirements. But it’s not working if I change, set priority to 155 it will set it with the next script run even priority is 150, not 90.
Note that (A || B && C) means (A || (B && C)) due to operator precedence, not ((A || B) && C). If you want the latter, you need to use parentheses as shown. It’s like 1+2*3 is 7, not 9.
BODMAS just went out of my mind then it came to Mikrotik scripting I’m new to Mikrotik scripting but with your help guys doing progress. Thanks a mill again.