> You can do it like this:
>
> $cond('email' in tvars, "value=" + tvars['email])
>
> You need to add web.cond to template globals to be able to do this.
>
> AnandThanks for your reply Anand, however your suggestion does not work! When 'email' is not set in tvars, a KeyError is thrown by Python because it needs the tvars['email'] as a function argument. -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
