489
edits
Script 10k (talk | contribs) (m3_clear_color is an int32 not bool) |
Script 10k (talk | contribs) (BSL ignores the use of undeclared variables but this causes undefined behavior) |
||
Line 28: | Line 28: | ||
On some occasions you may want to declare a ''local'' variable (i.e., to embed a declaration statement into a [[BSL:Functions|function]]). This feature will be detailed elsewhere. | On some occasions you may want to declare a ''local'' variable (i.e., to embed a declaration statement into a [[BSL:Functions|function]]). This feature will be detailed elsewhere. | ||
'''Note''': BSL will not complain if you use a nonexistent variable for instance in a if condition. However this cause undefined behavior in your scripts (e.g. for instance I had a real case scenario where chr_wait_health did not work as expected) so make sure you always declare the variables that you are using in your scripts. | |||
===Assignment=== | ===Assignment=== |
edits