You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
344 B

example foreach loop
.control
* set values by numbers
foreach val -40 -20 0 20 40
echo var is $val
end
echo
*set values by variable
set myvariable = ( -4 -2 0 2 4 )
foreach var $myvariable
echo var is $var
end
echo
* set values by vector
let myvec = vector(5)
foreach var $&myvec
echo var is $var
end
.endc
.end