Difference between revisions of "Variable"
(→Variable Data Types) |
(→System Variables) |
||
Line 9: | Line 9: | ||
===System Variables=== | ===System Variables=== | ||
− | System variables are local read-only variables that provide information about the environment. They cannot be written to and their values are not necessarily constant (the same) during the whole piston run | + | System variables are local read-only variables that provide information about the environment and always have a $ preceeding them. They cannot be written to and their values are not necessarily constant (the same) during the whole piston run. |
==Variable Data Types== | ==Variable Data Types== | ||
webCoRE supports a variety of data types, please review the [[Variable data types|variable data types]]. | webCoRE supports a variety of data types, please review the [[Variable data types|variable data types]]. |
Revision as of 02:15, 11 April 2017
[some info on variables]
Contents
Variable types
Local Variables
Local variables are variables that are owned by an individual piston. They are unique to each piston and are not shared among pistons. Multiple pistons can define local variables with the same name, they do not overlap.
Global Variables
Global variables are variables that are common to all pistons. They always start with the @ symbol and are available to any and all pistons. Any change made to a global variable by any piston is immediately available to all other pistons within the same webCoRE instance.
System Variables
System variables are local read-only variables that provide information about the environment and always have a $ preceeding them. They cannot be written to and their values are not necessarily constant (the same) during the whole piston run.
Variable Data Types
webCoRE supports a variety of data types, please review the variable data types.