Can anyone suggest why i never get to the Else statement ?
There are many {SRMARRAY.LASTDISCOVERYTIME} that do contain a date and time.
{
stringvar notdiscovered;
stringvar discovered := "discovered ok";
numbervar countofnullarrays;
if isnull({SRMARRAY.LASTDISCOVERYTIME})
Then (countofnullarrays := countofnullarrays+1;
notdiscovered :="NOT DISCOVERED")
Else
discovered :="discovered ok";
}