Operators

Logical

AND - Test for both values to be true (&&)

Called Logical AND operator. If both the operands are true then then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = true","var":"x","val":true,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["2972ab09b5a4051dd5d340e725fb6ccc"]},{"data":{"type":"variable","step":"y = true","var":"y","val":true,"maxpaths":1,"uuid":"2972ab09b5a4051dd5d340e725fb6ccc","x":300,"y":400,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"x && y","call":"operators.logical.&&","args":{"item1":"{\"~\":\"x\"}","item2":"{\"~\":\"y\"}"},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":480,"width":120,"height":32,"operators":"operators","operators.logical.&&":"&&"},"paths":[]}]

Example Response

{"result":true}

OR - Test for either of 2 values to be true (||)

Called Logical OR Operator. If any of the two operands are non zero then then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = false","var":"x","val":false,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["2972ab09b5a4051dd5d340e725fb6ccc"]},{"data":{"type":"variable","step":"y = true","var":"y","val":true,"maxpaths":1,"uuid":"2972ab09b5a4051dd5d340e725fb6ccc","x":300,"y":400,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"x || y","call":"operators.logical.||","args":{"item1":"{\"~\":\"x\"}","item2":"{\"~\":\"y\"}"},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":480,"width":120,"height":32,"operators":"operators","operators.logical.||":"||"},"paths":[]}]

Example Response

{"result":true}

NOT - Reverse the logical state of a value (!)

Called Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true then Logical NOT operator will make false.

 

{ }
[{"data":{"type":"variable","step":"x = true","var":"x","val":true,"maxpaths":1,"uuid":"2972ab09b5a4051dd5d340e725fb6ccc","x":300,"y":400,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"!x","call":"operators.logical.!","args":{"item":"{\"~\":\"x\"}"},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":480,"width":120,"height":32,"operators":"operators","operators.logical.!":"!"},"paths":[]}]

Example Response

{"result":false}