16 Jul
2008
16 Jul
'08
11:08 a.m.
On Wed, Jul 16, 2008 at 6:34 AM, Tino Wildenhain <tino@wildenhain.de> wrote:
You should check the tales documentation. the pipe symbol | means a logical "or", in effect if the left expression resolves to "non existent", None, empty object,... (generally python False) the right part of it is evaluated.
Not at all. The pipe uses the left-hand operand if it is defined; a value of None or an empty string is still a defined value. As long as "here" can be traversed with the name "getDataInici" then the left-hand expression will be used. If that traversal fails the right-hand expression will be used instead. -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> "Chaos is the score upon which reality is written." --Henry Miller