[albatross-users] al-if question

Greg Hamilton gregh at object-craft.com.au
Fri Jul 29 09:17:03 EST 2005


Gabriel Cooper wrote:
> <al-value expr="locals().get('blah','Blah does not exist!')"/>
> 
> <al-if expr="locals().get('blah',False)"/>
>     Blah Exists
> <al-else>
>     Blah Doesn't Exist
> </al-if>
> 

This also works:

<al-if expr="__ctx__.has_value('blah')">

etc.

Greg



More information about the Albatross-users mailing list