Operators

Comparison

Are values equal (==)

Checks if the value of two operands are equal, if yes then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = 10","var":"x","val":10,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"is x = 20","call":"operators.comparison.==","args":{"item1":"{\"~\":\"x\"}","item2":20},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"operators":"operators","operators.comparison.==":"==","data_to_var":"result"},"paths":[]}]

Example Response

{"result":false}

Are values not equal (!=)

Checks if the value of two operands are not equal, if yes then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = 10","var":"x","val":10,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"is x != 20","call":"operators.comparison.!=","args":{"item1":"{\"~\":\"x\"}","item2":20},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"operators":"operators","operators.comparison.!=":"!=","data_to_var":"result"},"paths":[]}]

Example Response

{"result":true}

Are values not equal (<>)

Checks if the value of two operands are not equal, if yes then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = 10","var":"x","val":10,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"is x != 20","call":"operators.comparison.<>","args":{"item1":"{\"~\":\"x\"}","item2":20},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"operators":"operators","operators.comparison.<>":"<>","data_to_var":"result"},"paths":[]}]

Example Response

{"result":true}

Is value greater than another (>)

Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = 10","var":"x","val":10,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"is x > 10","call":"operators.comparison.>","args":{"item1":"{\"~\":\"x\"}","item2":10},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"operators":"operators","operators.comparison.>":">","data_to_var":"result"},"paths":[]}]

Example Response

{"result":false}

Is value greater than or equal to another (>=)

Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = 10","var":"x","val":10,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"is x >= 10","call":"operators.comparison.>=","args":{"item1":"{\"~\":\"x\"}","item2":10},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"operators":"operators","operators.comparison.>=":">=","data_to_var":"result"},"paths":[]}]

Example Response

{"result":true}

Is value less than another (<)

Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = 10","var":"x","val":10,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"is x < 10","call":"operators.comparison.<","args":{"item1":"{\"~\":\"x\"}","item2":10},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"operators":"operators","operators.comparison.<":"<","data_to_var":"result"},"paths":[]}]

Example Response

{"result":false}

Is value less than or equal to another (<=)

Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true.

 

{ }
[{"data":{"type":"variable","step":"x = 10","var":"x","val":10,"maxpaths":1,"uuid":"d7db099a1a3f9e2df693cd4422bb26cb","x":300,"y":320,"width":120,"height":32},"paths":["9148d39266042bc89aff74e46b1a483b"]},{"data":{"type":"library","step":"is x <= 10","call":"operators.comparison.<=","args":{"item1":"{\"~\":\"x\"}","item2":10},"maxpaths":1,"uuid":"9148d39266042bc89aff74e46b1a483b","x":300,"y":400,"width":120,"height":32,"operators":"operators","operators.comparison.<=":"<=","data_to_var":"result"},"paths":[]}]

Example Response

{"result":true}

Compare 2 values (cmp)

Compare the two objects x and y and return an integer according to the outcome. The return value is negative if x < y, zero if x == y and strictly positive if x > y.

 

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

Example Response

{"result":1}