I declared the following variable in a label:
Code: Select all
label testA:
$ stats_test1 = 55
Code: Select all
label testA:
$ stats_test1 = 55
Why is using $ everywhere bad though?trooper6 wrote: ↑Mon Nov 05, 2018 11:20 amYes it is bad.
Variables should be declared outside of any label using default if that variable will change (the most common situation) or define if the variable will not change.
Code: Select all
default color = “red” label start: “Today my shirt is [red]”
Code: Select all
$ globalVariable = testFunc(87)
Code: Select all
TypeError: testFunc() takes no arguments (1 given)