oTree Forum >

Multiple "if" statements in html

#1 by Sahar ,

Hello everyone,

Can someone explain how I can put two if statements in the HTML part? I tried with [{{if .... and if ...}}], [{{if ...}} and {{if ...}], and [{{if...}}{{if ...}}]. None of them works. I want to say if you chose A and if you chose B before, now you see this. 


#2 by Chris_oTree ,

It’s the same as in Python:

if A and B

Write a reply

Set forum username