Psychology Lab script problem

Author Message
GreeneLab

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 5/5/2010
  • Status: offline
Psychology Lab script problem Wednesday, May 05, 2010 3:41 AM (permalink)
0
I'm having some problem with running this code in E-Prime (which runs code close to visual basic). I'm in quite the bind.

Here's the code I have for one small section
if (BlockRepeats <= 3) and ((100*(AB/ABpres)<minProf) or (100*(BC/BCpres)<minProf) or (100*(CD/CDpres)<minProf) or (100*(DE/DEpres)<minProf) or (100*(EF/EFpres)<minProf)) then
BlockRepeats = BlockRepeats + 1
goto BlockOne
else
goto BlockOneEnd
end if
end if


In short, a block (test section) is repeated if this criterion is not met ((100*(AB/ABpres)<minProf) or (100*(BC/BCpres)<minProf) or (100*(CD/CDpres)<minProf) or (100*(DE/DEpres)<minProf).

If that criterion is met, then they go to the next Block (BlockTwo, Block Three, etc.)

If that criterion is not met for a block, that block (BlockOne, BlockTwo, etc.) is redone and the BlockRepeats integer is updated.

The subject can only continue retrying a block if BlockRepeats is less than or equal to 3 (retrys) on any of the blocks in total (they can retry any of the blocks as long as they don't do it over 3 times).

Once BlockRepeats=4, the subject is kicked from the experiment by sending them to Dismiss (a reference at the end of the experiment).

As of right now, the only problem is that I don't know how to code for them going to Dismiss.
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:Psychology Lab script problem Wednesday, May 05, 2010 3:48 AM (permalink)
    0
    Well since VBScript does not allow GoTo statements at all, this might be the wrong crowd to ask.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      ebgreen

      • Total Posts : 8227
      • Scores: 98
      • Reward points : 0
      • Joined: 7/12/2005
      • Status: offline
      Re:Psychology Lab script problem Wednesday, May 05, 2010 3:50 AM (permalink)
      0
      In honesty, I should say that VBScript does have very limited use of GoTo statements. But not in the fashion that you are using them to go to a label defined within the program.
      "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
      Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
      http://www.visualbasicscript.com/m_47117/tm.htm
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9