; If test script
script "IfTest"

message("Setting A to 123...")
set A to 123

message("Comparing A with 123...")
if(A = 123) message("Yes, A is 123")

message("Checking A is not 321...")
if(A ! 321) message("Correct, A is not 321")

message("Checking A is less than 999...")
if(A < 999) message("Correct, A is less than 999")

message("Checking A is greater than 7...")
if(A > 7) message("Correct, A is greater than 7")

message("Comparing A with 1973 (there will be no reply to this test as it will evalutate false)...")
if(A = 1973) message("Error! Is isn't 1973, but evaluated as equal. Damn, we can't even blame the Pentium FDIV!")

message("Checking A is between 100 and 200 (inclusive)... [nested if()!]")
if(A ] 100) if(A [ 200) message("Correct, A is between 100 and 200.")

message("Stupid amount of nested if()'s coming up!")
; maximum line length is 255 characters, this is EXACTLY that!
if(A!1) if(A!2) if(A!3) if(A!4) if(A!5) if(A!6) if(A!7) if(A!8) if(A!9) if(A!10) if(A!11) if(A!12) if(A!13) if(A!14) if(A!15) if(A!16) if(A!17) if(A!18) if(A!19) if(A!20) if(A!21) if(A!22) if(A!23) if(A!24) if(A!25) message("A is greater than 25! (phew)")

message("All done!")
terminate()
