print "conventional nested if then else if then else" for x = 0 to 1 for y = 0 to 1 print x;" ";y;" "; if x then print 1 else if y then print 2 else print 3 next next print "now, if if then else (?)" for x = 0 to 1 for y = 0 to 1 print x;" ";y;" "; if x then if y then print 2 else print 3 next next
conventional nested if then else if then else 0 0 3 0 1 2 1 0 1 1 1 1 now, if if then else (?) 0 0 3 0 1 3 1 0 1 1 2
conventional nested if then else if then else 0 0 3 0 1 2 1 0 1 1 1 1 now, if if then else (?) 0 0 3 0 1 3 1 0 3 1 1 2
|