Reply To: Catch Trials

PennController for IBEX Forums Support Catch Trials Reply To: Catch Trials

#5598
Jeremy
Keymaster

Hi Nickolas,

You can replace this bit of code from the documentation:

new DynamicElement(
    "Message",
    { html: "<p>Pause</p>", transfer: 1000 },
    true
)

with this:

new DynamicElement(
    "PennController",
    newTrial(
        newButton("Hello world").print().wait()
    ),
    true
)

You can code the newTrial as you would any regular PennController trial

Jeremy