Content deleted Content added
NeosZanadu (talk | contribs) No edit summary Tag: Reverted |
Reverted 1 edit by NeosZanadu (talk): GF edit, but it's not consistent with the rest of the article's coding style and it's ugly |
||
Line 63:
IFT and IFTE will evaluate a program block given as one of its arguments, allowing a more compact form of conditional logic than an IF/THEN/ELSE/END structure. The following example pops an object from the bottom of the stack, and replaces it with "One", "Less", or "More", depending on whether it is equal to, less than, or greater than 1.
«
DUP 1 == « DROP "One" »
« 1 < "Less" "More" IFTE »
|