This shows you the differences between two versions of the page.
| xrpl:if [2019/03/03 23:05] – created Karsten75 | xrpl:if [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | ===== if ===== | ||
| - | |||
| - | ^Arguments^Result^Notation^ | ||
| - | |bool| | [bool-] | | ||
| - | |||
| - | |||
| - | === Description === | ||
| - | bool ARG1: The value to evaluate< | ||
| - | 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 === | ||
| - | <code prpl>if (<-var eq (1)) | ||
| - | #Do Something | ||
| - | endif | ||
| - | </ | ||