Functions: If_Number Function - Wynntils/Wynntils GitHub Wiki
- IF_NUM
Based on condition, returns the first value if the comparison is true, otherwise return second value.
This function has 3 required arguments.
- condition (Boolean) → The condition to be met.
- ifTrue (Number) → The value which will be returned when the condition is true.
- ifFalse (Number) → The value which will be returned when the condition is false.
IF_NUMBER(<condition>; <ifTrue>; <ifFalse>) → (Number)
IF_NUMBER(TRUE;10;0) → 10