Program control
Description | Program control | Examples | See also |
The kinetic scripting language provides several progam control features:
if...then...else...:
if bool.expression then {
...
} else if bool.expression then {
...
} else {
...
};
while...do...:
while bool.expression do {
...
};
repeat...until...:
repeat {
...
} until bool.expression;
break;
Use break to jump out of a loop (while...do... or repeat...until...) when a certain condition is met.
stop;
Use stop to programmatically pause the script and wait for user input.
end;
Use end to terminate the program.