Initialization; Persistence; Operators; Calculations - Universal Devices ISY-994i User Manual

Home automation
Hide thumbs Also See for ISY-994i:
Table of Contents

Advertisement

8.2.6 Initialization

• At start-up, all variables are initialized to their predefined init value, or zero, if no
init value has been specified. The init value may be set by editing the init value in the
table containing the variable definitions.
• The init value may also be set in programs, thus providing a means of persisting
values across restarts.
x : A variable a : Either a variable or an integer constant
Initialize $x Init To a
This sets the init value for this variable, it does not modify the current value of the variable.
You may of course set the init value to the current value of the variable by doing this:
$x Init To $x

8.2.7 Persistence

It may be desirable to maintain the value of some variables across restarts of the ISY. This
must be done explicitly by changing the init value of the variable (as described above).
One of the reasons we don't automatically persist all of the variables is that the value of a
variable would have to written to persistent storage (a file on the SD Card) each time it
changes.

8.2.8 Operators

All operations are in the form $variable op <value or variable>.

8.2.9 Calculations

Most operations do both a calculation and assignment, for example:
$counter += 1
is equivalent to the more familiar
$counter = $counter + 1
x : A variable
Page | 123

Advertisement

Table of Contents
loading

Related Products for Universal Devices ISY-994i

Table of Contents