Zif

Evaluates a condition and returns the then-branch value if true, or the optional else-branch value if false.

Syntax

Zif{condition;then;else?}

Arguments

NameTypeRequiredDefault
conditionstringYes-
thenstringYes-
elsestringNo-

Example

Zif{ZgetUserVar{points}>=100;You have enough points!;Not enough points.}