Conditionals & Loops; Switch - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

PUSH[MSP_GROUP,1]
[MSP_GROUP, 1] = [RELAY, 1]
- or -
PUSH[MSP_PRESET1]
[MSP_PRESET1] = [RELAY, 1]
Conditionals & Loops
Axcess supports two types of conditional statements and three types of loops:
NetLinx supports:
MEDIUM_WHILE
LONG_WHILE
during the programming loop.
accepted syntax to provide compatibility with existing Axcess programs.
SWITCH...CASE statements
NetLinx adds the
selective execution of code blocks evaluated by a single condition. The value of the
is tested against each
found, the statements associated with the
no match is found, the
evaluated only once.
The following rules apply to
NetLinx Programming Language Reference Guide
[RELAY, 1] = ![RELAY, 1]
[RELAY,1] = ![RELAY, 1]
Conditional statements:
statements
IF...ELSE
statements
SELECT...ACTIVE
Loops:
statements
WHILE
statements
MEDIUM_WHILE
statements
LONG_WHILE
Conditional statements:
statements
IF...ELSE
statements
SELECT...ACTIVE
statements
SWITCH...CASE
Loops:
statements
FOR
statements
WHILE
statements
LONG_WHILE
statements are obsolete in NetLinx due to eliminating the timeout of
loops now differ from
WHILE
,
WHILE
MEDIUM_WHILE
conditional statements. The
SWITCH...CASE
value (which must be a numeric constant or a string literal). If a match is
CASE
case statements (if any) are executed. The
DEFAULT
SWITCH...CASE
(* MSP_GROUP IS A DEV SET *)
(* MSP_PRESET1 IS A DEVCHAN SET *)
loops in the way input change notifications are processed
and
LONG_WHILE
SWITCH...CASE
are executed. All other
CASE
statements:
NetLinx Programming Overview
loops.
WHILE
statements are all still
statements provide
expression

SWITCH

statements are ignored. If
CASE
expression is
SWITCH
17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents