On 19-11-2008 at 10:58:02 Szymek Przybył <[EMAIL PROTECTED]> wrote:

How works this expression: 'price | defaultPrice | nothing' (I don't saw something like this in manual)?

With "|" operator, PHPTAL uses first variable it can find.

If variable "price" doesn't exist, PHPTAL will look for variable "defaultPrice", and it that doesn't exist, it will do nothing (instead of throwing error because of non-existant variable).

http://phptal.motion-twin.com/manual/en/#expression-chains

There's also default keyword:
http://phptal.motion-twin.com/manual/en/#tales-default

--
regards, Kornel

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to