Within <<script>> passages, you have access to the current state variables (via the object which variables() returns) and temporary variables (via temporary() return value). You can both read and write objects and values in there and if you use the state variables, those (or rather, deep clones of them) will persist in future passages.