Query regarding $findvariablepartner

15 views
Skip to first unread message

Sheharyar Ahmed

unread,
Dec 24, 2023, 10:20:31 AM12/24/23
to classEx - Help and Discussion Forum
Dear community, 
I am new to classEx and I am enjoying it. At the moment I am trying to create an experiment (similar to PGG) with three participants and I am struggling to retrieve the values of other roles. e.g For Role 1, my results retrieve value of Role 2 and not for Role 3 and gives the error (variable undefined), however, for Role 2 it gives the value for Role 3 and not for Role 1(with the same error of variable undefined). For Role 3 it does not retrieve the value of role 1 and role 3. 
I am sure there is something wrong with my coding but I am unable to figure it out.
Pardon me if I made a mess of my question. I am happy to clarify if not understood properly.
any lead will be appreciated

Best Regards
Sheharyar Ahmed

Marcus Giamattei (classEx Team)

unread,
Dec 26, 2023, 6:03:26 AM12/26/23
to classEx - Help and Discussion Forum
Dear Ahmed,


Variable has to be capital letter.

$findVariablePartner(‘myvariable’, $round, 3); retrieves myvariable from role No 3 in the current round.


Best, Marcus

Reply all
Reply to author
Forward
0 new messages