if i use
Code: Select all
notification_tag = antag[0]; // is not existent
That's fine. But there is no shorthand to test for an value. I always get an exception!!! And if you have many of those variables it's an unnecessary mess.
Do i have always to write something like this:
Code: Select all
if(isList(antag) and length(antag) >= 0)
{
notification_tag = antag[0];
}
else
{
notification_tag = "";
}
Code: Select all
notification_tag = convertNull(antag[0], "");
Code: Select all
notification_tag = convertNull(!isList(antag[0]), "");
just give a null or "" back
is this possible?
best regards