User`s guide

WEB Server Quick Start Page 167
Web
Server
Show Controller Web-Script
The show controller’s HTTP server supports a scripting language with a similar syntax to
the widely used PHP language. This syntax is recognized by many modern HTML
editors and therefore will not interfere with the design of a web page. Although the
syntax is similar, the show controllers do not support the PHP language.
Web-Script Blocks
A single web-script file may have many web-script blocks but no single block may
contain over 350 characters. This limit has been established to ensure that normal
operation of the show controller is not interrupted by a web-script. The following table
shows the characters used to define a web-script block.
Characters
Description
<?
start a script block
?>
end a script block
If Statements
If statements can be used to control whether commands within the web-script will be
executed. In the examples below, the value of A and B may be a string, number, or
variable.
Usage
Description
if(A == B)
{
}
Compare two values and execute the code between the braces
only if they are equal
if(A != B)
{
}
Compare two values and execute the code between the braces
only if they are not equal