On 3 Aug 2012, at 4:45 PM, adohertyd <adoher...@hotmail.com> 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.
> 
> 


-- 



Reply via email to