-
ifnull / coalesce function in Omnis
Hi,
I do find myself to often write/read:
Calculate <b>lVar</b> as pick(isnull(<b>lVar</b>),<b>lVar</b>,0)
to give a default value to something that can be #NULL and sometime, when the names are long, the code gets harder to read.
Having a function like the SQL ifnull(var, defaultValue) would make the code more readable and compact.
Log in to reply.