DragScript Environment Variables

From Voyager Wiki
Revision as of 16:16, 3 March 2021 by Leonardo (talk | contribs)
Jump to navigation Jump to search

These DragScript elements control the flow of execution through your script. You can use the DragScript Simulator to test how control will flow when the DragScript actions complete with OK, ERROR or TIMEOUT status, and when Emergency Suspend, Resume and Exit events happen.

Variables

DragScript has several variable types: counters (integers), string variables and decimal numbers. They must be declared with the Counter, String or Decimal Number actions before they can be used. You can set and change their values, and then make decisions to execute DragScript actions based on their value. For example, you may build a script that runs from zero to ten sequences based on the value of a counter variable you set at the start of the script.

Type

  • Counter: Declare a counter (integer) variable and give it an initial value. You must declare a variable before using it