Control Flow Commands; Table 8-19 Control Flow Commands - Lantronix SLC 8000 User Manual

Advanced console manager
Hide thumbs Also See for SLC 8000:
Table of Contents

Advertisement

Command
timestamp
format

Control Flow Commands

The control flow commands allow conditional execution of blocks of other commands. The
preprocessor treats these as Primary commands, allowing them to appear anywhere in a script
that a Primary command is appropriate.
Command
while
SLC™ 8000 Advanced Console Manager User Guide
Description
This command returns the current time of day as determined by the
command will only be used in combination with the
timestamp
produce the value for a variable. Syntax:
timestamp <format>
where
is a quoted string.
<format>
The
command is analogous to the C language sprintf(). The
format
command will only be used in combination with the
value for a variable. Syntax:
format <format string> <value 1> <value 2> ... <value n>
where <format string> will be a quoted string. Each of the <value x> elements will be
a word, a quoted string or a variable reference.

Table 8-19 Control Flow Commands

Description
The
command executes an associated block of commands as long as its
while
Boolean expression evaluates to TRUE. After each iteration the Boolean expression
is re-evaluated; when the Boolean expression evaluates to FALSE execution
passes to the first command following the associated block. Each command within
the block must be a Primary command. Syntax:
while {<Boolean expression>} {
command 1
command 2
...
command n
}
8: Device Ports
SLC
. The
command to
set
format
command to produce the
set
144

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SLC 8000 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF