INCR & DECR statements
Created by: dvkt
These might be redundant because you can just do add 1 and var in var
, but I tend to do that a lot so thought this might be worth exploring. Tests are in Lartu/ldpltest#4.
Example:
DATA:
n is number
PROCEDURE:
while n is less than 100 do
display "n: " n crlf
incr n
repeat
display "final: " n crlf
Wasn't sure about INCR
vs INCREMENT
too?