[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
CASE
Case is not important in command, function, and variable names. The
only time case matters is inside a string constant (e.g., "Hello" is
not the same string as "hello"). Whitespace (such as the space, the
tab, the Carriage Return, or the Line Feed character) is not impor-
tant. The script compiler does not care where you place items, so
that you may arrange the program as you see fit. For example,
if (value == 1)
prints("value is equal to 1!");
else
prints("values is not equal to 1.");
is equivalent to
if (value == 1) prints("value is equal to 1!");
else prints("value is not equal to 1");
or even to
if(value==1)prints("value is equal to 1!");else prints("value
is not equal to 1.");
The only time whitespace matters is when it would split up key-words
or function name, or in a string. For example, the key-word 'while'
must not be split up if it is to be recognized. The same applies to
other key-words or function names. As well, there must be space be-
tween the letters of a command and other letters. For example,
'while' is not the same as 'whileabc'. In the interest of clarity,
it is recommended that you try to make your code easy to understand,
by indenting where appropriate, and by using space effectively.
There is no reason, for example, to put more than one statement on a
line, even if it is perfectly legal. A good example of program style
can be found by looking at the sample scripts included with Telix.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson