[solved] Running item from inline script?
Hy there,
how can i run a single item (e.g. a text_input) from an inline script, e.g. if the text_input was left empty by a participant. i guess sth. like self.experiment.run(), right?
Cheers & Thanks,
Björn
Comments
Maybe i have found the correct code:
Is that correct?
Cheers & Thanks,
Björn
Hi Björn,
Yep, that's it. I'm impressed that you figured it out, because it's hardly documented.
One thing though: Some items require a prepare phase. For example, sketchpads construct a canvas in advance, because that prevents temporal delays during a trial. So you will want to execute the prepare phase as well:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
thank you! I have used the debug window to check out with exp.dict ;-)
Cheers,
Björn