I am trying to write a code, such that the for loop stops if x(!i) > 1, but I am not sure what syntax I should use.
Code: Select all
for !i = 1 to 100
if x(!i) < 0 then
y(!i) = 0
else if x(!i) > 1 then
y(!i) = 1
break
endif
endif
nextThank You in advance.
