I am trying to do a multiline for loop in IDL but its not working, here is my first program:
for n=0,5 do begin
print, n
which gives this output:
6
and this is my second program:
for n=0,5 do begin
print, n
endfor
which gives the following error:
endfor
^
% Syntax error.
I would like the program to gives this output:
0
1
2
3
4
5
Thanks