User variables can be used in combination with Actions and Conditions.
See for more information:
This chapter describes the variables that are to be defined by the user.
In addition Rocrail offers even more than 30 "build in" variables whose values are determined by the operating process.
Therefore look here: Text variables
The ID is used through out the Rocrail program as a unique key for referencing this variable.
A group can be specified. This is for the sake of clarity, since you can sort by group in the table window.
A description can be given. Only used for information so that you know later what you have created this variable for.
The range used for generating a random number.
Max. must be set greater than Min.
See Actions for more details.
|value||Set a new numeric value.|
|add||Add a value to the numeric value.|
|subtract||Subtract a value from the numeric value.|
|text||Set a new text.|
|random||Generate a random number in the range of min./max.|
|start|| Starts the timer; The value will be increased at every tick. |
The start value must be set in the parameter field.
|The timer tick interval is dependent of the Action Timer option.|
|stop||Stops the timer.|
|min||Sets the min. value.|
|max||Sets the max. value.|
|=value||Compare the variable value with the given value.||=1030|
|>value||Check if the variable value is greater than the given value.||>4711|
|<value||Check if the variable value is less than the given value.||<23|
|!value||Compare the variable value with the given value if they are unequal.||!47|
|#text||Compare the variable text with the given text.||#nogo|
|?text||Compare the variable text with the given text if they are unequal.||?gogo|
|&||System variable: time|
The operations will be processed from left to right disregarding the mathematical rules.
Values, variables and operators must be separated by one blank.
#Var1 + 67 - $Txt2 #Var1%lcid% + 67 - $Txt2
Text values are converted to an integer and will default to zero if it contains text only.
The Command and Condition Sub-ID is optional and can be used for the following Text Variables:
This has only affect in automatic mode.
The variable will be automatically created if it does not already exist.
If a train/locomotive does not find a new destination the following variables are automatically generated: