Reply To: conditional trials

PennController for IBEX Forums Support conditional trials Reply To: conditional trials

#5183
Jeremy
Keymaster

Hello,

You could do something like this:

Template( "myTable.csv" ,
     row => newTrial( "experiment" ,        
        newController("DashedSentence", {s: row.Sentence}).print().log().wait()
            .remove()
        ,      
        (row.Question?[
          newText("Question", row.Question).print()             
          ,
          newKey("FJ")
            .wait()
            .log()       
        ]:null)
        ,
        [etc]

Jeremy