refresh_step
refresh_step
Enter the current step again, so the step starts over with its text expanded from the current global data.
The platform expands a step’s ${global_data.*} values when the step is
entered. Current platform releases also expand the text again, in place, before
a request whenever a value it reads has changed, so new global data reaches the
model without this method. Earlier releases and realtime models keep the values
from when the step was entered. For those, return refresh_step() with the
current step’s name, after update_global_data() in the
same result.
Entering the step starts it over, so its history mode applies
again. Under "hide", for example, the step’s dialogue so far also leaves the
model’s context.
This is the same action as swml_change_step(step_name).
Parameters
step_name
The name of the step the call is in.
Returns
FunctionResult — self, for chaining.
Example
add_drink returns: