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