Sets a local variable for the participant's testing session.

set_local(key, value, state)

Arguments

key

The variable's key (character scalar).

value

The value to set the variable to.

state

The participant's state object.