Difference between revisions of "DragScript Environment Variables"

From Voyager Wiki
Jump to navigation Jump to search
(Created page with "eferferf")
 
Line 1: Line 1:
eferferf
+
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.
 +
 
 +
== Contents ==
 +
 
 +
* 1 Variables
 +
** 1.1 '''Type'''
 +
** 1.2 Manage
 +
* 2 Jumps
 +
* 3 Repeats
 +
* 4 Decisions
 +
** 4.1 '''Action Results''':
 +
** 4.2 '''Operating Conditions:'''
 +
** 4.3 '''Voyager Environment:'''
 +
** 4.4 '''Variable Check'''
 +
* 5 Events
 +
** 5.1 '''Manage'''
 +
** 5.2 '''Raise'''
 +
** 5.3 '''Remote'''
 +
** 5.4 '''Various'''
 +
* 6 Block
 +
* 7 Remark
 +
* 8 Flow
 +
 
 +
== 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

Revision as of 16:14, 3 March 2021

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.

Contents

  • 1 Variables
    • 1.1 Type
    • 1.2 Manage
  • 2 Jumps
  • 3 Repeats
  • 4 Decisions
    • 4.1 Action Results:
    • 4.2 Operating Conditions:
    • 4.3 Voyager Environment:
    • 4.4 Variable Check
  • 5 Events
    • 5.1 Manage
    • 5.2 Raise
    • 5.3 Remote
    • 5.4 Various
  • 6 Block
  • 7 Remark
  • 8 Flow

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