IF / ELSE / ENDIF
Try it yourself →Executes code based on a condition.
Syntax
IF condition ... ELSE ... ENDIF
Description
Closed with ENDIF. Equality is == or =, not equal is <> or #. Logic uses .AND. .OR. .NOT.
Example
LOCAL score := 75 IF score >= 50 ? "Passed" ELSE ? "Failed" ENDIF
Expected output
Passed
When to use?
Flow branching.