G90
% % symbol comment description
; Comment description after a colon
#L100=1 % Substitute a constant 1 in the local variable # L100
#L102=3 % Substitute a constant 3 in the local variable # L102
IF [#L100 EQ 1] GOTO N3 % Comparison of conditions using local variables in IF STATEMENT
#L101 = #L100 + #L102 % Numerical operation using the local variables
N3 % Specify the Statement Number
G02 X100. Y100. I50. J50.
G01 X[#L102] % Same operation as G01 X3 (since 3 is substituted in # L102)
N150 WHILE [#L100 LE [360.-#L102]] DO 210 % Repeat up to N210 until the condition is met
N200 WHILE [#L101 GE 10.] DO 220 % Repeat up to N220 until the condition is met
G0 Z10.
#L101 = #L101 + 10. (INCREASE) % Equation
END 220 % Iteration end for the DO 220 statement
#L100 = #L100 + #L102
#L101 = 50.
END 210 % Iteration end for the DO 210 statement
M02