If statements within trial's /stimulusframes?


Author
Message
DCole9
DCole9
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 42, Visits: 220
Hi Inquisiters,
I'm running into a problem with a task-switching paradigm in which subjects have a choice between 2 colored patches.  The patches are randomly assigned a high demand and a low demand condition which effects the display color of a number.  The color of the number will effect whether they make an "even or odd" decision or a "> 5 or < 5" decision.

What I'm trying to do is setup my stimulus frames to display from the high demand number list when the certain criteria are true (random position variable = 1, they selected patch1, etc).

My question is:   Do I need to set up individual trials for each possibility?  (e.g. trialA for random position 1, select.patch1.  trialB for random position 2, select.patch1. etc. etc.)

Or is it possible to use something like
"/ontrialbegin = [if((values.XX == 1( && (values.YY == 2 )) values.stimframes = "displaytext, displaynum, patch1, patch2]
/stimulusframes = values.stimframes"


or "/stimulusframes = [if ((values.XX == 1) && (values.YY == 2)) 1 = displaytext, displaynum, patch1, patch2]"


Thank you for your help!
Attachments
DemandSelection.iqx (234 views, 25.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search