[albatross-users] al-if question
Gabriel Cooper
gabriel.cooper at mediapulse.com
Thu Jul 28 23:32:26 EST 2005
<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>
Axel Steiner wrote:
>Hi,
>
>this may be a stupid question, but I'm new to Albatross
>and didn't find a solution in the documenation. How
>can check with al-if, wether a variable is defined or not?
>When I try a <al-if expr="bla"> and bla is not defined I
>get an error....NameError: name 'bla' is not defined
>But I need something like this, because the variable
>will be defined later.
>
>Thanks,
>Axel
>
>---
>"Unix is very user-friendly. It's just picky who its friends are."
>
>PGP-Fingerprint: D7B2 2A64 CCCB 9253 5474 E5F8 5B4B 8FD9 CA6E B770
>_______________________________________________
>Albatross-users mailing list
>Albatross-users at object-craft.com.au
>https://www.object-craft.com.au/cgi-bin/mailman/listinfo/albatross-users
>
>
>
--
__________________________________
*gabriel.cooper*@mediapulse.com <mailto:gabriel.cooper at mediapulse.com>
internet developer
865.675.4455 x32
800.380.4514
www.mediapulse.com <http://www.mediapulse.com/>
__________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.object-craft.com.au/pipermail/albatross-users/attachments/20050728/c4f48be3/attachment.html>
More information about the Albatross-users
mailing list