// Test control structures // Test control structures // Test control structures // Test control structures define float i = 0.0 for j = 1 to 10 do if j==10 then break end set i = i + j end if i != 45 then error "for/break incoherance" end set i = 1 //for loop and if statement for 5 do set i = i * 2 if (i > 10) then break end print "#"i"#" end print "test while" set i = 12 // while loop and if statement while i > 1 do set i = i - 1 if (i < 5) then break end print "#"i"#" end //break print "========= test_controls passed OK" quit