SECTION 4 CX-Supervisor Script Language
19
SECTION 4
CX-Supervisor Script Language
This chapter describes the CX-Supervisor script language syntax. It provides
a detailed definition of the syntax of CX-Supervisor scripts that drive project,
page and object actions, and CX-Supervisor expressions as used by objects
and scripts. In conjunction with the script functions and methods described in
Chapter 6, the CX-Supervisor script language provides a very powerful,
compiled, fast and full featured programming language.
The following table describes the script language syntax at a glance.
The 'Type' column refers to the types of script and expression the function can
be applied to. 'All' refers to both expressions and scripts. 'Scr' refers to scripts
only. 'OP' refers to Object and Page scripts only.
Function Name Function Type Type Remarks
&, |, ^, <<, >> bitwise operators All Applies bitwise expressions
(objects) statement OP Specifies an object name for
modification or test.
(points) statement All Specifies a point name for
modification or test.
+, -, *, /, %, =, ++,
--
arithmetic
operators
All Applies arithmetic
expressions.
<, >, <=, >=, ==, != relational
operators
All Applies relational
expressions.
AND logical operators All Applies logical expressions.
CALL statement All Call a subroutine
DO LOOP WHILE
UNTIL EXIT DO
statement Scr Script segment to be repeated
FALSE Boolean state Scr Applies Boolean expression.
FOR TO STEP
NEXT EXIT FOR
statement Scr Script segment to be repeated
IFTHEN
ELSE\ELSEIF
ENDIF
statement Scr Applies a test to a script.
OR logical operators All Applies logical expressions.
NOT logical operators All Applies logical expressions.
REM statement Scr Remarks on line or lines of
script.
RETURN statement Scr Stops sequential execution of
script.
SELECT CASE/
END SELECT
statement Scr Applied to complex tests.
TRUE Boolean state Scr Applies Boolean expression.