it works:
dtml-if var1=='OK' and var2==3 and var3 in ('a',1,'1') and var4 != 'OK'
and var5
note1: var5 is string, true when '' nor None but must exists
note2: var5 is int, true when 0 nor None but must exists
dtml-else
/dtml-if
- Puvodní zpráva -
Od: Justin Dunsworth
Is there
These are required to be set, though.. right?
Doing:
dtml-call REQUEST.set('var_one','OK')
dtml-call REQUEST.set('var_two','OK')
dtml-if var_one=='OK' and var_two=='OK' Set
dtml-else Not Set
/dtml-if
works but taking away var_two and I get a NameError: name 'var_two' is not
defined. This is
Yes, use like that
dtml-unless var1
dtml-call REQUEST.set('var1','')
/dtml-unless
- Puvodní zpráva -
Od: Justin Dunsworth
These are required to be set, though.. right?
Doing:
dtml-call REQUEST.set('var_one','OK')
dtml-call REQUEST.set('var_two','OK')
dtml-if var_one=='OK' and
Thanks for the response.
I could do that but it isn't really getting rid of the original problem.
Using my original example I'd be turning this:
dtml-if var1
dtml-if var2
dtml-if var3
dtml-else
/dtml-if
dtml-else
/dtml-if
dtml-else
/dtml-if
into:
dtml-unless var1
dtml-call