Do as Van B says.
Just in case you don't know what "indent" means, here is an example:
if a=1
print "a is 1"
if b=2
print "b is 2 and a is 1"
endif
endif
You should always indent when the command has an "end" to it. Examples of these commands are:
-type
-select
-while
-repeat
-do
-for
-open to read
-open to write
-if
And of course the "end" of these commands are the following:
-endtype
-endselect
-endwhile
-until
-loop
-next
-close file
-endif
And, just because I'm bored, I put them all together:
type hello
select n
while f=3
repeat
do
for t=1 to 6
open to write 1,"bla.txt"
if t=3
print "hello"
endif
close file 1
next t
if t=7 then exit
loop
until t=7
f=4
endwhile
endselect
endtype
Much easier to read than this:
type hello
select n
while f=3
repeat
do
for t=1 to 6
open to write 1,"bla.txt"
if t=3
print "hello"
endif
close file 1
next t
if t=7 then exit
loop
until t=7
f=4
endwhile
endselect
endtype
TheComet