Page | 128
8.2.16
Modifying Variables in Programs
You can also use ISY Programs to modify variables. You can perform standard arithmetic
functions on a variable, change a variable to a specific value, or modify a variable’s Init
state.
The following functions can be performed on a variable:
Command Function Performed
=
Sets the variable to a specified value.
+=
Adds to the variable
-=
Subtracts from the variable
*=
Multiples the variable
/=
Divides the variable
%=
Performs a remainder function on the variable
&=
Performs an AND (binary) function on the
variable
|=
Performs an OR (binary) function on the
variable
=Random Sets the variable to a number between 1 and
the specified number
Init To
Sets the variable’s initial value
For example, the following screenshot increases a variable by 1:
Figure 117: Increment a Variable by 1
This example sets the Init value of a variable to the current value of another variable:
(This applies to firmware v5 and above)
Figure 118
: Set a Variable’s Initial Value
Summary of Contents for ISY-994i Series
Page 1: ...The ISY 994i Home Automation Cookbook ...
Page 35: ...Page 12 Figure 6 UDAjax Main Screen ...
Page 36: ...Page 13 Figure 7 UDAjax Devices Scenes Screen ...
Page 68: ...Page 45 Figure 44 NodeServer Configuration popup 5 2 5 Tools Menu Figure 45 Tools Menu ...
Page 102: ...Page 79 6 6 3 2Activate My OpenADR Portlet Figure 77 OpenADR My OpenADR Menu Option ...
Page 103: ...Page 80 6 6 3 3Configure OpenADR Settings Figure 78 OpenADR Settings Menu Option ...
Page 104: ...Page 81 Figure 79 OpenADR Settings Display ...
Page 108: ...Page 85 6 6 3 7Issue an Event Figure 84 OpenADR Issue and Event ...
Page 110: ...Page 87 Figure 86 OpenADR Event Viewer ...
Page 116: ...Page 93 Figure 92 ElkRP2 Account Details M1XEP Setup Button In the M1XEP Setup Window ...
Page 267: ...Page 244 Figure 189 State Variables ...
Page 268: ...Page 245 Figure 190 Programs and Folders ...
Page 292: ...Page 269 Figure 192 Irrigation Folders Figure 193 Irrigation Devices ...
Page 376: ...Page 353 Figure 209 Save Topology File ...
Page 433: ...Page 410 Figure 242 X 10 recognized as Living Room East Device ...
Page 540: ...Page 517 Figure 357 In Car Detection 12 Figure 358 In Car Detection 13 ...
Page 602: ...Page 579 Figure 382 SecureCRT SSH Raspberry PI Session ...
Page 685: ......