[SR-Dev] new operators & if($v) behaviour
Juha Heinanen
jh at tutpro.com
Fri Apr 24 16:42:27 CEST 2009
Miklos Tirpak writes:
> I vote fore keeping the support for "if (@to.tag)" like expressions, and
> adding the extra functions for more precise checks if necessary. So a
> string value could evaluate to true if it exists and not "".
what if there is no to tag at all or if there is one, but its value is
""?
> I think it is easier to read and understand "if (@to.tag)" then "if
> (!strempty(@to.tag))"
why don't you write 'if (@to.tag != "") ...'? that would be easy to
understand.
-- juha
More information about the sr-dev
mailing list