...
A variable is used as an argument in Shogun Post command syntax (see Understand HSL command syntax).
The following topics explain how to:
Scroll only | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
...
|
...
|
...
|
...
| ||
|
For information on reserved words, also see Understand reserved words.
...
Scroll tablelayout | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
data_type | identifies the type of data object that the variable can contain |
variable_name | is the name of the variable. |
Assigning a variable means giving a specific value to a declared variable. You assign a value to a variable using the equals sign (=). This is usually done to assign the results of an operation to a variable.
...
This table shows the data types that can be used for Shogun Post variables.
Variable data type | Definition | Examples |
---|---|---|
Boolean | Boolean flag. See Boolean. | true |
Float | Floating point number. See Float. | 265.8, -973.2 |
Int | Integer. See Int. | 0, 4, -7 |
String | Characters. See String. | "My mother has a car!" |
Vector | One-dimensional array of 3 floating points or integers (stored as floating points). See Vector. | <<1, 8.2, 7.6>> |
Variable names
When naming a variable, note that the name:
...