Woops! I've done a double check, the results are not boolean. I've assigned 'Yes' and 'No' to each button. Still though, the error remains.
{{if conditionA=="Yes" and conditionB=="Yes"}} returns nothing but {{if conditionA=="Yes"}} returns output. The problem is definitely the multiple condition On Saturday, 4 August 2012 00:47:19 UTC+1, Jonathan Lundell wrote: > > On 3 Aug 2012, at 4:45 PM, adohertyd wrote: > > Yes that's correct. The data comes from a radio button so the 2 conditions > are always true or false (boolean) > > > Just for laughs you could try > > if conditionA and conditionB: >> >> > > > > On Saturday, 4 August 2012 00:40:53 UTC+1, Jonathan Lundell wrote: >> >> On 3 Aug 2012, at 4:34 PM, adohertyd wrote: >> >> Just wondering if anyone has a solution to this. I have an if statement >> in a view: >> >> {{if conditionA == True:}} >> {{for obj in ListA:}} >> <li>{{=obj}}</li> >> {{pass}} >> {{pass}} >> >> >> >> This works fine. Now, if I add another condition to the if statement, >> that I know exists: >> >> {{if conditionA == True and conditionB==True:}} >> {{for obj in ListB:}} >> <li>{{=obj}}</li> >> {{pass}} >> {{pass}} >> >> >> >> It gives me no output but it definitely should. Am I missing something >> here? I can't see any similar examples in the docs >> >> >> Are you sure that conditionB is a boolean value? For example, (1 == True) >> is True, but (2 == True) is False. >> > > > > > --