Thank you so much for this very clear, comprehensive (and funny) answer! Although it seems simple something went wrong because the task won't run and this is the message I got:
<openended oefening>
/branch: Missing ')'
<trial continue>
/branch: " is not a valid setting
/branch: -1.0000 is invalid. Value must greater than 0.00000
/branch: could not locate trial ".
This was the way I programmed my trials:
<openended oefening>
/ trialcode = "oefening"
/position = (50, 90)
/linelength = 9
/numlines = 1
/ validresponse = (anyresponse)
/ correctresponse = ("stop")
/ errormessage = (errormessage, 2000)
/ stimulustimes = [10 = oefening]
/ branch = [trial.continue]
</openended>
<trial continue>
/ trialcode = "continue"
/ validresponse = ("1", "0")
/ stimulustimes = [5 = continue]
/ branch = [if(trial.continue.response = "1") openended.oefening]
</trial>