Software
®
78
SIMPL+
PUSH
Name:
PUSH
Syntax:
PUSH <variable_name1> [, <variable_name2> ...]
{
[Local Variable Definitions]
<statements>
}
Description:
<variable_name> is a DIGITAL_INPUT type. On the rising edge of
<variable_name>, the statements between the opening { and closing } are executed.
When using DIGITAL_INPUT arrays, only a change in the entire array can be
detected, not an individual element. Refer to "GetLastModifiedArrayIndex" on
page 93
for a method of detecting a change to an individual element.
When listing multiple variable names, the names can be put on the same line or
broken up into several PUSH statements for readability. Refer to "Stacked Events"
on
page
80.
Example:
DIGITAL_INPUT trigger;
STRING_OUTPUT output$;
PUSH trigger
{
output$ = "Hello, World!";
}
In this example, when the DIGITAL_INPUT trigger transitions from low to high, the
STRING_OUTPUT output$ will have the string "Hello, World!" put into it.
Version:
SIMPL+ Version 3.00 - local variables are allowed within PUSH statements.
SIMPL+ Version 2.00 for DIGITAL_INPUT arrays as <variable_name>.
SIMPL+ Version 1.00 for everything else.
Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?