$
).<<set>>
command. For example, the following code puts a string, "Hello, Yarn!"
, into a variable called $greeting
:null
, which represented "no value". Starting with Yarn Spinner 2.0, variables are never null
. All variables are required to have a value.string
function converts values of any type into a string.number
function converts values of any type into a number (if it can be interpreted as one.)bool
function converts values of any type into a boolean value (if it can be interpreted as one.){ }
) inside a line. The value of that variable will appear in its place.