Reply To: Branching Structure for filtering participants

PennController for IBEX Forums Support Branching Structure for filtering participants Reply To: Branching Structure for filtering participants

#10725
AY-Osaka
Participant

Hi, may I ask you another related question?

(Everything you told me was perfect, and I am using them. But, I have another need)

I want to collect the results even for those who cannot continue to the last.
This is because I want to get the IP-address, so I can track and rule out such insincere participants in future tasks.

To this end, I tried to write the following code by making a dummy timer that is intended to allow me to use the SendResults() function, but this does not work at all.
Do you mind telling how to fix this?

Thank you so much in advance for your help!

AY

Header(
    newVar("error_count",0) // set the initial value to 0
        .global()           // make sure the Var element is global
        .test.is(v=>v<3)    // the value should be below 3
        .failure(           // if not, then block the script here
            newTimer("timer1", 1)
               .start()
               .callback(
                   SendResults()
               )
               .wait()
            ,
            newText("Sorry, too many mistakes. The end.").center().print()
            ,
            newButton().wait() // will wait forever
        )
    ,
    defaultScale.button().print().wait()
)
  • This reply was modified 9 months, 2 weeks ago by AY-Osaka.
  • This reply was modified 9 months, 2 weeks ago by AY-Osaka.
  • This reply was modified 9 months, 2 weeks ago by AY-Osaka.