Function StackIf condition
If Statement
Configuration:
An if
statement executes an action only when a specified condition is met.
The condition can be any function that returns a boolean.
In this example, two comparision function are defined to compare the age
and name
fields of a struct.
If both conditions are satisfied, the first block is executed; otherwise, the else
block runs.