QSDK 1.1 Documentation
Up ] [ Next ]

QScript Keywords

and and operator x = 1 and y > 2
as casting operator "12.34" as float
declare explict declaration of variables declare x := 12
do while/for loop do { sleep() } while tired()
else if statement if tired() then sleep() else run()
event global event keyword pause(event shutdown)
exit exit a function without returning any result f := function(x) { if x then exit else pause(2) }
false boolean negative value x := false
for for loop for x in 1..8 do display(x*x)
fork spawning keyword: start a parallel execution. fork { pause(3) }
function function declaration f := function(x): x*x + 2
if if statement if tired() then sleep() else run()
import imports scripts import common.maths
in for loop: iterates on a range for x in 1..8 do display(x*x)
not not operator not true
or or operator 1 = 5 or 2.3 < 3
return returns value in a function as its result return (2+3)
rule
terminated termination event: raised when an execution terminates pause(execution terminated)
then if statement if tired() then sleep() else run()
true boolean positive value if true then doSomething()
while while loops while tired() do sleep()
Up ] [ Next ]

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004