PennController for IBEX › Forums › Support › Proceeding to the next trial based on different conditions › Reply To: Proceeding to the next trial based on different conditions
February 16, 2022 at 5:50 pm
#7765
Jeremy
Keymaster
Hi,
You can replace newTimer("timeout",5000).start().wait()
with newButton("Skip").callback( end() ).print()
to print a Button element which, when clicked, will end the trial immediately
Your current code (re)starts a new Timer element whenever the participant presses Enter from within the input box, and tell PennController to wait for it to elapse before proceeding, regardless of whether a new, correct response is given before its end
Jeremy