Problem with an experiment (ANT)
Hello, I am new to opensesame and my abilities are downright low.
I downloaded the ANT (attention network task) experiment from the internet only when I tried to start the experiment an error message would appear:
The experiment did not end normally for the following reason: 'var.block_no <> 0' is not a valid conditional statement
Details
item-stack: experiment [run] .block_loop_pr [run] .pr_sequence [run] .practice_loop [run] .trial_sequence [prepare]
Could you help me ?
Also if someone knows the LANT version (lateralized attention network task) of this task and knows how I can modify the one I have to get there, just help me that would be great!
Lou 😊
Comments
Hi Lou,
Well, the error message says it already:
var.block_no <> 0doesn't work. I am not sure what the conditional statement is supposed to do, but it should be one of these:like var.block_no>0 or var.block_no<0 or var.block_no==0, etc. Check the Python documentation to get a list of all possible operators. So, what you need to do is to find where the experiment uses that line and fix it there. Luckily the error message also tells you where the error is. Namely: experiment [run] .block_loop_pr [run] .pr_sequence [run] .practice_loop [run] .trial_sequence [prepare]. So, in the item
Trial_sequencein theprepare phase, this line must be used somewhere. Try to find it and fix it.Generally, I would recommend that you try to familiarize a little with Opensesame before you jump into understanding other peoples experiments. That is often times harder that starting yourself from scratch.
Here is a pretty straightforward tutorial to familiarize yourself with Opensesame: https://osdoc.cogsci.nl/3.3/tutorials/beginner/
Sebastiaan has also a lot of nice youtube tutorials where he explains how to do some things in Opensesame. I'm sure you'll find something there that will be useful to you.
Good luck,
Eduard
thanks a lot !