Besides all that is mentioned, the If without braces has a side-effect that the If with braces does not have : it affects the system variable $Test.
USER>set $test=0
USER>w $test
0
USER>if 1=1 { write "one" }
one
USER>w $test
0
USER>if 1=1 write "one"
one
USER>w $test
1
USER>Not important, only if you use the ELSE (legacy) command...
- Log in to post comments