Re: [web2py] If statement in View not processing correctly

2016-04-08 Thread Richard Vézina
{{if customer.address2:}} Apt/Suite: {{=customer.address2}} {{else:}} Apt/Suite: {{pass}} On Fri, Apr 8, 2016 at 3:44 PM, Jeff Riley wrote: > Hello all. I have the following if statement in my views to try to > eliminate empty fields that are displaying "None" in my views. I am not > s

[web2py] If statement in View not processing correctly

2016-04-08 Thread Jeff Riley
Hello all. I have the following if statement in my views to try to eliminate empty fields that are displaying "None" in my views. I am not sure how to get the field value to evaluate the statement. Any help appreciated. {{if customer.address2 == "None":}} Apt/Suite: {{else:}} Apt/Sui