User Tools

Site Tools


4rpl:commands:if

Index
Flow Control

if

if (<-var1 eq (<-var2))

Description

Evaluate the first element on the stack. If True, then execute statements that follow, up to the endif or else statement. If False, execution skips to the first statement following the endif or else statement. Any nonzero value is considered True, a value of zero is False.

Examples

if (<-var eq (1))
   #Do Something
endif

Index

4rpl/commands/if.txt · Last modified: 2021/12/23 14:27 by Karsten75