Error with conditional statement
This is regarding a small dissertation project. I am trying to implement a masking paradigm in opensesame. The design is as follows:
The experiment starts with a mask (## symbols) 480ms followed by a cue the position of the cue on the screen is determined by a variable "cuetype" which has 4 levels. This is again followed by a mask 22ms. This is followed by a prime which is may be presented for either 27 ms (prime condition) or 160 (normal condition). The prime's location and cue's location can be same or different. The prime is followed by mask which is presented for 80 ms. Which is followed by target screen where the subject has to determine if the screen bears a predetermined target or not. The target's location can be same as it was of cues location or it can be different.
Design: cuetype (4) X prime location (4) X Condition (2: 27 ms prime condition; 160 normal condition)
The subject is instructed to see if the target displayed is equal either 2 or 4 or 6 or 9. I have added a inline script to determine the correct response:
target_set = [2,4,6,9] numbers = range(1,10) num = random.sample(numbers,1) for i in target_set: if i==num: var.correct_key=='.' else: var.correct_key=='z'
I have also written a piece of code to determine if the trial was congruent or incongruent
So if the cue's location is same as of target's location it is a congruent trial else its an incongruent trials:
if var.cuetype==var.location: var.congruency='cong' else: var.congruency='incong'
I have added separate sketchpads to present cues at different locations. I have edited the conditional statements so that those sketchpads are presented when it matches with entry on loop of cuetype or prime location. Thus, there are 4 sketchpads for cues, sketchpad for prime and 4 sketchpad for target (which are matched by cuetype)
Running the experiment shows me a very strange error
'' is not a valid conditional statement
I have attached the experiment file.
Can someone please help me resolve this ?
@sebastiaan this is not the first time I have encountered an error relating conditional statements. Am I doing something wrong or is it bug??