#1 by GregorFHSU
Hello everyone, I need confirmation on my problem: My experiment is structured as followed [Intro, Gender, (blank), Experiment, Conclusion]. On the Gender page the participants get asked for their gender and therefore displayed something differently. I implemented a blank page without a HTML-script and just some code so I get everything displayed on the experiment page as I want. Can I do it this way or is there a better way to make a if-statement after the gender and before the experiment page without having a page displayed? Best regards, Gregor
#2 by BonnEconLab (edited )
If I understood your intentions correctly, you could put the code with the relevant if condition(s) in before_next_page of the Gender page. See https://otree.readthedocs.io/en/latest/pages.html#before-next-page. So no, a separate blank page should not be necessary.
#3 by GregorFHSU
Thank you, works perfectly fine now! Couldn't see this simple solution even though I used it in the same code...