This function creates a "while loop" in the participant's testing session. This "while loop" corresponds to the following procedure:
Check whether a condition (termed
test) is satisfied.
If the condition is satisfied,
execute a series of test elements (termed
otherwise exit the while loop.
Loop back to step 1.
Test function to execute.
Argument list should include
further permitted arguments are:
state, the participant's
input, the Shiny
input object for the current page;
output, the Shiny
output object for the current page;
session, the Shiny
opt, test options as created by
List of psychTestR test elements.
The previous version of this function,
always executed the series of test elements at least once,
even if the condition was never satisfied.