for i = 0 to 1 for j = 0 to 1 print i print j if (i) then if (j) then print "i is true j is true" else print "i is true j is false" end if else if (j) then print "i is false j is true" else print "i is false j is false" end if end if next j next i