Learn how to use and combine different conditional functions in APL
Function Name | Description |
---|---|
case() | Evaluates a list of conditions and returns the first result expression whose condition is satisfied. |
iff() | Evaluates the first argument (the predicate), and returns the value of either the second or third arguments |
Evaluates a list of conditions and returns the first result whose condition is satisfied.
Axiom returns the value of the first result whose condition evaluates to true. If none of the conditions is satisfied, Axiom returns the value of nothingMatchedResult
.
Evaluates the first argument (the predicate), and returns the value of either the second or third arguments. The second and third arguments must be of the same type.
true
.false
.This function returns the value of ifTrue if predicate evaluates to true, or the value of ifFalse otherwise.
Learn how to use and combine different conditional functions in APL
Function Name | Description |
---|---|
case() | Evaluates a list of conditions and returns the first result expression whose condition is satisfied. |
iff() | Evaluates the first argument (the predicate), and returns the value of either the second or third arguments |
Evaluates a list of conditions and returns the first result whose condition is satisfied.
Axiom returns the value of the first result whose condition evaluates to true. If none of the conditions is satisfied, Axiom returns the value of nothingMatchedResult
.
Evaluates the first argument (the predicate), and returns the value of either the second or third arguments. The second and third arguments must be of the same type.
true
.false
.This function returns the value of ifTrue if predicate evaluates to true, or the value of ifFalse otherwise.