Or Op
This op represents one OR operation.
This operation returns true if one of the items in it is truthy. If one of the items is trutyh then this operation will stop further evaluations.
Definition: ["or", <check1: expression(boolean)>, ...<checkN: expression(boolean)>]
- <checkN: expression(boolean)> - represents an expression which returns truthy or falsy value.
Usage
Request:
["or", ["value", false], ["value", true]]
Response:
true
Typical Usage
This value is usually not sent alone to the requests, but it is used as a sub operation for other requests.
Example:
Request:
["ifElse",
["or", ["run", "getUser", 1], ["run", "getUser", 2]],
["value", "There is an user"],
["value", "No users found."]
]
Response:
"There is an user"