Reply To: including attention checks and break

PennController for IBEX Forums Support including attention checks and break Reply To: including attention checks and break

#5976
Jeremy
Keymaster

Hi Kathy,

EDIT: Oops, looks like I misremembered how the subsequence function works. See message below for an alternative solution

Since you’re already using the subsequence function, why don’t you just tell it exactly that? Here’s what your whole Sequence command could look like:

Sequence( 
  "intro" 
  ,
  subsequence( 
      repeat(randomize("ListeW"), 40) , "attentionCheck"
      ,
      repeat(randomize("ListeW"), 40) , "break"
      ,
      repeat(randomize("ListeW"), 40) , "attentionCheck"
      ,
      repeat(randomize("ListeW"), 40)
  )
  ,
  "end"
)

I see that you named your Scale element “slider,” if you want to make it a “real” slider, you could consider using the slider command, like this:

newScale("slider", 50)
  .before( newText("0 ") )
  .after( newText(" 50") )
  .slider()
  .print()
  .log()
  .wait()

In any case, you don’t need to manually specify all 50 labels, you can just do this:

newScale("slider", 50).labelsPosition("bottom")

Jeremy

  • This reply was modified 3 years, 7 months ago by Jeremy. Reason: Mistake
  • This reply was modified 3 years, 7 months ago by Jeremy. Reason: Solution in next message