oTree Forum >

page / round sequencing

#1 by Frances


I have a simple question about page sequencing.

Let player.successes be a natural number. (Suppose it is 139.)
Initialize player.attempts as zero.

I want to present decision.html, which asks the player if they wish to place a gamble, with menu:={0,1}.

If the player chooses 0, go to results.html
Else if the player chooses 1
    If (player.attempts += 1) <= player.successes
    then show decision.html
    else show results.html

How would one do this in Otree without using Javascript?

Thanks a bunch!

Write a reply

Set forum username