correct answer depending on "group" startup information
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



correct answer depending on "group" startup... Expand / Collapse
Author
Message
Posted 9/4/2009 1:39:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/28/2009 7:16:02 AM
Posts: 7, Visits: 26
Hi everyone,

I have a question concerning the "group" variable than can be prompted for in the beginning of each session. I want to change the correct answer key according to this group variable (and change the key assignment as a consequence of corse).

In a very easy example there might be a trials with a target or no target (blank). One group should answer with "w" for TARGET and "q" for BLANK, the other group the other way round:

LIST:

ID Procedure corrAns
-------------------------------
1 blank [no]
1 target [yes]


I used this InLineas the very first line:

dim yes, no
if group = 1 then yes = "q" and no = "w"
if group = 2 then yes = "w" and no = "q"

Unfortunately I get the error message "Unknown function "group"".
What does that mean? I am not so familiar with Basic, so any help might be very cool.
Maybe you have other suggestions to change key assignment by the help of startup information.

Thanks a lot,
Tobias

Post #3403
Posted 9/4/2009 6:07:39 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/28/2009 7:16:02 AM
Posts: 7, Visits: 26
Maybe the list was not that clear due to format. here is a screenshot:


And that is a screenshot of the script:
Post #3405
Posted 9/7/2009 2:08:22 PM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Forum Members
Last Login: Today @ 3:37:18 PM
Posts: 713, Visits: 2,756
See responses at the E-Prime Google Group, http://groups.google.com/group/e-prime/browse_thread/thread/6b7c2d14924a118f.

-- David McFarlane, Professional Faultfinder
Post #3413
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 8:53pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.141. 8 queries. Compression Disabled.
 
Privacy | Terms of Use | Terms and Conditions | Legal Trademarks | Authorized Use | Quality Policy
Copyright 2012 Psychology Software Tools, Inc. All Rights Reserved
Email: Info@pstnet.com | Telephone: 412.449.0078 | Fax: 412.449.0079