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

set_global(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.