Skip to main content

(32) _IFVAL_JUMP

Synonyms

  • _IFWK_JUMP

Effect

Compares two values using the given comparison operator. Jumps to a script if the comparison is true.

The position of the jump is not saved. Execution does not return to this command once a _RET is executed.

Syntax

_IFVAL_JUMP(val1, comparison, val2, label)
ArgumentDescriptionTypesRequired
val1The value to compareWork, FloatRequired
comparisonThe comparison operator to useStringRequired
val2The value to compare toWork, FloatRequired
labelThe label to jump toStringRequired

Example

_LDVAL(@LOCALWORK1, 4)
_IFVAL_JUMP(@LOCALWORK1, 'EQ', 4, 'ev_dummy')

The above script will set @LOCALWORK1 to 4.

Then, the value of @LOCALWORK1 is compared to 4, and is determined to be "equal". Since that matches comparison, ev_dummy is jumped to.