'I'f
If then jump to label Syntax
I exp J label Description
If statements in moan are very simple and quite restrictive. An If statement may only have a Jump statement as its body and nothing else. The expressions can contain standard TNT Basic comparisons such as =, >, <, >=, <= and <>. They cannot contain 'and', 'or' or 'not'. Example: ' Only do the move if R0 > R1 "I R0>R1 J E; M 10,10,10; E:" ' Same with lower case letters inserted for comments "If R0>R1 then Jump End; Move 10,10,10; End:" See also TNT Basic's If... Then... statement.
Table of contents