Difference between revisions of "Variable"

From webCoRE Wiki - Web-enabled Community's own Rule Engine
Jump to: navigation, search
(System Variables)
m (ady624 moved page Variables to Variable without leaving a redirect)
(No difference)

Revision as of 14:12, 4 May 2017

[some info on variables]

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.