278 43-TV-25-30 Iss.6 GLO Aug 07 UK
Functions for Scripts
(Scripting is not available on the eZtrend QXe).
Scripts evaluate at whatever the Analogue sample rate is set to.
There is 500 character limit for scripting
Not equal to != Returns a true or false result from testing if two
variables are not equal to each other. e.g. IF
(A1!=GLBV1)
OR || Returns a true or false result from testing if one
or other or both tests are true. e.g. IF
(A1==GLBV1) || (A2!=GLBV2)
XOR ~ Returns a true or false result from testing if one
or other (but not both) tests are true. e.g. IF
(A1==GLBV1) ~ (A2!=GLBV2)
Table 14.7 :
Functions for Scripts Syntax Description
Else else Steps into brackets to run. Must always finish
with a return.
else
{
return y;
}
Elseif elseif(x) Carries out a conditional test and if true steps
into brackets to run. Must always finish with a
return.
elseif (x>4)
{
return y;
}
First run (FIRSTRUN) Returns true if the script is being run for the
first time, otherwise returns false
If if(x) Carries out a conditional test and if true steps
into brackets to run. If false, steps to next test
without operating the contents of the brackets.
Next step will be either elseif or else.
Must always finish with a return.
If (x>5)
{
return y;
}
Set Changed (SETUPCHAN
GED)
Returns true if the setup has been changed,
otherwise returns false
Time Changed (TIMECHANG
ED)
Returns true if the time has been changed, oth-
erwise returns false
Table 14.6 :
Boolean Operators Syntax Description