On Feb 8, 4:24 pm, [EMAIL PROTECTED] wrote:
> > > val = BETTER foo THAN bar
>
> > > ;-)
>
> > > Cobol-strikes-back-ly yours,
>
> > > George
>
> > I use a ETL language/tool that actually has a function for this kind
> > of thing:
>
> > NulltoValue(value,defaultValue)
>
> > it returns defaultValue if value is null otherwise value.
>
> even Ksh has one;
>
> val=${foo:=$bar}
>

An approximation in Python:

http://gflanagan.net/site/python/utils/RattlebagTemplate.py.html
http://gflanagan.net/site/python/utils/RattlebagTemplate.py
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to