Function StackIf condition
Any Of
Returns true
if any condition is met.
This function is used to easily combine multiple conditions into a single function for better readability and maintainability.
In this example, we define two variables, name
and age
, and use an if statement with two conditions.
The conditions are grouped with an "any" logic, meaning the block will execute if any of the conditions are satisfied.
The given flow contains the following logic:
- First Condition: "Any Of" Function
- This checks multiple conditions:
name
is equal to"rebaz"
.age
is between20
and40
(inclusive).
- If either condition is true, the associated condition block is executed.
- This checks multiple conditions:
- Second Condition: Single Condition Check
- If the "Any Of" function returns
false
, the next condition is checked:- Whether
age
is equal to30
.
- Whether
- If this condition is true, its corresponding logic is executed.
- If the "Any Of" function returns