Hello *.*,
there are some serious problems with script IF-commands (Allbest & JuciPhox).
Please have a look at the following small examples:
First IF-command is FALSE
Second IF-command is following the first
Second IF-command without "endif"
@title IF01
x=0
t=1
if x>0 then
if t>0 then A=2
print "FALSE"
goto "xyz"
endif
print "TRUE"
:xyz
end
Script is working correct
First IF-command is FALSE
Second IF-command is following the first
Second IF-command with "endif"
@title IF02
x=0
t=1
if x>0 then
if t>0 then A=2 endif
print "FALSE"
goto "xyz"
endif
print "TRUE"
:xyz
end
Script is working incorrect - "FALSE" is printed
First IF-command is FALSE
Print-command between first and second IF-command
Second IF-command without "endif"
@title IF03
x=0
t=1
if x>0 then
print "dummy"
if t>0 then A=2
print "FALSE"
goto "xyz"
endif
print "TRUE"
:xyz
end
parse err (pointing at the last line of the script)
First IF-command is FALSE
Print-command between first and second IF-command
Second IF-command with "endif"
@title IF04
x=0
t=1
if x>0 then
print "dummy"
if t>0 then A=2 endif
print "FALSE"
goto "xyz"
endif
print "TRUE"
:xyz
end
Script is working correct
First IF-command is TRUE
Second IF-command is following the first
Second IF-command without "endif"
@title IF05
x=0
t=1
if x=0 then
if t>0 then A=2
print "TRUE"
goto "xyz"
endif
print "FALSE"
:xyz
end
Script is working correct
First IF-command is TRUE
Second IF-command is following the first
Second IF-command with "endif"
@title IF06
x=0
t=1
if x=0 then
if t>0 then A=2 endif
print "TRUE"
goto "xyz"
endif
print "FALSE"
:xyz
end
Script is working correct
First IF-command is TRUE
Print-command between first and second IF-command
Second IF-command without "endif"
@title IF07
x=0
t=1
if x=0 then
print "dummy"
if t>0 then A=2
print "TRUE"
goto "xyz"
endif
print "FALSE"
:xyz
end
Script is working correct
First IF-command is TRUE
Print-command between first and second IF-command
Second IF-command with "endif"
@title IF08
x=0
t=1
if x=0 then
print "dummy"
if t>0 then A=2 endif
print "TRUE"
goto "xyz"
endif
print "FALSE"
:xyz
end
Script is working correct
Who can help anyway?
regards
chiptune