Function that allows a unit to be imposed as a function of the logical state of a condition.
Syntax |
real cond_val (cond, real valTrue, real valFalse) |
---|---|
cond |
Condition to be examined. It can also be a generic expression |
valTrue |
Result value in case of cond TRUE |
valFalse |
Result value in case of cond FALSE |
Result |
Returns valTrue or valFalse based on the logical state of the condition |
Validity |
Rule, Task |
Note |
Example of use: |