Returning to a custom form from a sketchpad within a sequence
Hi, I am new to OpenSesame and am trying to figure out if I can set up the experiment as needed.
I have created a custom form (main_form) to appear first in a sequence which presents a calculation task the participants have to complete. Which task appears is directed from the loop to which the sequence belongs.
On the form they have a few different buttons: one to indicate whether they are done with the task and so the participants should not move on to the next task until this button is pressed. Other buttons provide access to different pieces of instructions. If participants press the instruction buttons I want to be able to return to the form (as the task is not finished). But I am having trouble figuring out how to get that accomplished.
I have created the instructions with sketchpad and in the sequence these items are only entered if the button is pressed. So that works fine. But I am not seeing a way where I can tell the sequence to return to the main_form if the finished task button has not been pressed. Instead the program quite naturally considers the trial to be over and presents the next task when I return from the instruction piece I am viewing.
I've tried a few ways to do it without success, and am now trying to use an inline script to direct the program back to the main_form if the variable taskFinished=="no" (this variable is set to yes when Task finished button is pressed). But there doesn't seem to be any way for me to go back to the main_form (none of the commands I thought I might use, such as goto or run seem to work).
Is there anyway for me to get this done? I must admit my programming skills are rusty so it might be something incredibly simple I'm just not seeing. Thank you for any help in advance!