Functions: If_Capped_Value Function - Wynntils/Wynntils GitHub Wiki
- IF_CAPPED
- IF_CAP
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 (CappedValue) → The value which will be returned when the condition is true.
- ifFalse (CappedValue) → The value which will be returned when the condition is false.
IF_CAPPED_VALUE(<condition>; <ifTrue>; <ifFalse>) → (CappedValue)
IF_CAPPED_VALUE(FALSE;CAPPED_HEALTH;CAPPED_MANA) → 100/100