Learn about using smart variables that determine their value at run-time.
In Yarn Spinner 3, smart variables let you create variables whose value is determined at run-time, rather than setting and retrieving a value from storage.
Smart variables give you a simple way to create more complex expressions, and re-use them across your project.
To create a smart variable, declare it like any other variable using the declare
statement and provide an expression, rather than a single value:
Smart variables can be accessed anywhere a regular variable would be used: