PennController for IBEX › Forums › Support › including attention checks and break › Reply To: including attention checks and break
August 12, 2020 at 1:13 pm
#5976

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