I am trying to write an IF-THEN statement to compare 2 values which are either tru or false. The statement is of the form:
IF (condition = true AND condition = true) THEN do action
An example I tried is :
:if ([/ping 10.0.0.254 count=1] & [/ping 10.0.0.253 count=1] = 1) do {:put "Both Gateways reachable"}
The script returns an error saying
Cannot compute logical AND of integer and truth values.
How can I compare 2 truth values?
Thanks
David