Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users
Checking multiple variables existence
 

Index | Next | Previous | View Flat


justin.dunsworth at gmail

Jan 24, 2012, 8:57 AM


Views: 519
Permalink
Checking multiple variables existence

Is there any way to check if multiple variables exist in the same if
statement? Right now I am having to writing multiple nested if statements
but can be quite cumbersome... so just looking for an easier way.

Currently I'd have to write:
<dtml-if var1>
<dtml-if var2>
<dtml-if var3>
<dtml-else>
</dtml-if>
<dtml-else>
</dtml-if>
<dtml-else>
</dtml-if>

When it would be easier to do something like:

<dtml-if "var1 and var2 and var3">
<dtml-else>
</dtml-if>

I've tried multiple different methods to accomplish this but haven't had
any luck... so is there an easier way to check multiple variables existence
in the same check?

Thanks.

Subject User Time
Checking multiple variables existence justin.dunsworth at gmail Jan 24, 2012, 8:57 AM
    Re: Checking multiple variables existence lukesh at seznam Jan 24, 2012, 9:08 AM
        Re: Checking multiple variables existence justin.dunsworth at gmail Jan 24, 2012, 9:15 AM
    Re: Checking multiple variables existence lukesh at seznam Jan 24, 2012, 9:43 AM
        Re: Checking multiple variables existence justin.dunsworth at gmail Jan 24, 2012, 10:14 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.