Re: [web2py] if statement with multiple conditions in view

2012-08-03 Thread Jonathan Lundell
On 3 Aug 2012, at 4:55 PM, adohertyd wrote: > 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"}}

Re: [web2py] if statement with multiple conditions in view

2012-08-03 Thread adohertyd
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 condi

Re: [web2py] if statement with multiple conditions in view

2012-08-03 Thread Jonathan Lundell
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: >

Re: [web2py] if statement with multiple conditions in view

2012-08-03 Thread adohertyd
Yes that's correct. The data comes from a radio button so the 2 conditions are always true or false (boolean) 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 statem

Re: [web2py] if statement with multiple conditions in view

2012-08-03 Thread Jonathan Lundell
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:}} > {{=obj}} > {{pass}} > {{pass}} > > > > This works fine. Now, if I add another condition to the if stateme

[web2py] if statement with multiple conditions in view

2012-08-03 Thread adohertyd
Just wondering if anyone has a solution to this. I have an if statement in a view: {{if conditionA == True:}} {{for obj in ListA:}} {{=obj}} {{pass}} {{pass}} This works fine. Now, if I add another condition to the if statement, that I know exists: {{if conditionA == True and conditionB==Tru