Long_While Statements; For Loop Structure - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

MEDIUM_WHILE (<conditional expression>)
{
}

LONG_WHILE statements

A
LONG_WHILE
during the programming loop. The system checks the input queue for a change notification message
before execution of each loop, beginning with the second loop. The message is retrieved if one exists.
This message must be processed before another one is retrieved, either at the start of the next loop or the
beginning of the next mainline iteration. Otherwise, the message is lost. For example:
LONG_WHILE (<conditional expression>)
{
}
DEFINE_EVENT
LONG_WHILE should not be used in Events. It may cause unexpected results.

FOR loop structure

The
loop structure allows you to define initialization statements; statements to execute after each
FOR
pass through the loop and a condition to test after each pass. If the condition evaluates to true, another
pass is made. Otherwise, the loop is terminated. The syntax of the
FOR (<INITIAL>; <condition>; <after pass>)
{
}
Parameters:
<INITIAL>
<condition>
<after pass> One or more statements that are executed after each pass through the state-
NetLinx Programming Language Reference Guide
(* conditional statements *)
differs from a
statement in the way input change notifications are processed
WHILE
(* conditional statements *)
events are still processed even if mainline is in a
(* loop statements *)
One or more statements that are executed one time before any FOR loop state-
ments are executed. Each statement must be separated with a comma; this is
typically a FOR loop index initialization statement.
A condition whose value is computed before each pass. If the condition evalu-
ates to TRUE, the FOR loop statements are executed. If the condition evaluates
to FALSE, the loop is terminated.
ments. Each statement must be separated with a comma. This is typically a
statement that increments the FOR loop index.
Language Elements
.
LONG_WHILE
loop is as follows:
FOR
35

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents