Hello i have my code to generate html base on a condition one of the table columns should be created only if var =1
this works but the html removes the _class="aa" in case of var==1, and does not create the TD if var!=1 TD( ..., *(DIV("b",_class="aa") ) if var==1 else tuple()) ...., etc *Using a list* If i use a list it shows the _class="aa" in case of var==1 but how do i make it to ommit the column in case var!=1 ?? It creates a blank TD() and that is not what i want TD(*[DIV("b",_class="aa") if var==1 else None???]) regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAEM0BxMf7hOSBBG_ptYxYcVSe-r53QZmqm1N6cV6OU7inmp_Lw%40mail.gmail.com.