Smart Variables
Learn about using smart variables that determine their value at run-time.
Last updated
Was this helpful?
Learn about using smart variables that determine their value at run-time.
Last updated
Was this helpful?
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 can be accessed anywhere a regular variable would be used:
To create a smart variable, using the declare
statement and provide an expression, rather than a single value: