11.07.2015 Views

Linden Scripting Language Guide - Engineering Center

Linden Scripting Language Guide - Engineering Center

Linden Scripting Language Guide - Engineering Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.3. States vs. Global variablesChapter 5. StatesA state and a set of global variables can serve the same purpose, and each can be expressed in terms of the other.In general, you should prefer the use of states over global variables since states allow you to immediately assumescript state without making comparisons. The less comparisons a script makes, the more regular code statementsit can run.20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!