EasyManua.ls Logo

Alcorn Mcbride V16Pro - Show Controller Web-Script; Web-Script Blocks; If Statements

Alcorn Mcbride V16Pro
179 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WEB Server Quick Start Page 143
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

Table of Contents