Variables

Variables

Variables are values that you access using a name. It works like this:

Username < "tommy3244" You set a variable. The name is "Username" and the value is "tommy3244"

say <var_Username> --(Turns into)-> say tommy3244

Modifying Variables

Setting

See the Scripts page for how to set variables.

Getting

To get a variable, type <var_VARNAME> where VARNAME is the name of the variable

Testing

To test if a variable exists, type <varexists_VARNAME> where VARNAME is the name of the variable

To test the value of a variable, type <var_VARNAME>=1 where VARNAME is the name of the variable and 1 is the value you want to test if it equals


Comments

Posts Quoted:
Reply
Clear All Quotes