OpenTracker USB User’s Manual
36
To compare the current altitude to a fixed value, for example, you can select
"Altitude" in box A and enter "10000" in box C, and click the "If A > C" button to
create the line "If Altitude > 10000". The next command entered will be indented,
indicating that it will only be executed if that condition is true. The "End Block"
command ends the conditional statement. "Else" reverses the sense of the last
conditional statement and should be used before the closing "End Block".
14.2.
Script Commands
Do Once
This command is used in conjunction with a conditional statement to execute a
block of code once once for each time that the condition becomes true. This
makes it very useful for ensuring that a command is not executed repeatedly.
The "Do Once" command can be used at most 16 times in one script.
Macro T / Macro Out
The following block is executed when the command named in T is entered at the
command line, through the FMI interface, or by APRS message. The Macro Out
command responds to the macro through the same channel
If In Area
Executes the following block if the tracker's current location is within the defined
geographic area. Coordinates are entered in degrees and decimal minutes, but
are displayed in decimal degrees.
If Profile 1 / If Profile 2
Executes code based on the currently active profile.
If A = B / If A < B / If A > B
Compares two 16-bit counters.
If A = C / If A < C / If A > C
Compares a counter to a constant value.