if (10 == 10) then print "this is the if part - ok"; print newline; i = 20; if (i < 10) then print "this is nested if - error"; print newline; else if (i > 10) then print "this is nested nested if - ok"; print newline; v = 20; if (i != v) then print "this is the nested*3 if - error"; print newline; else print "this is the nested*3 else - ok"; print newline; endif else print "this is nested nested else - error"; print newline; endif endif else print "this is the else part - error"; print newline; endif