Program control

Description Program control Examples See also






Description


The kinetic scripting language provides several progam control features:



Program control


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.



Examples




See also





(C) 2008-2009 Lorin Milescu. Last modified: 01-27-09