The <@NULLOBJECT> meta tag allows you to create objects that do not do anything, but allow conditional tests that check whether a variable is empty to return a result. This tag can also be used to initialize object variables within the Assignment action.
The following example assigns a variable myObject the value of an empty object whose value is undetermined.
<@ASSIGN NAME=myObject VALUE=<@NULLOBJECT>>
The <@IFEMPTY @@myObject> and <@ISNULLOBJECT @@myObject> meta tags return true and the LEN function of the <@CALC> meta tag yields a zero value. This meta tag could be used to return null objects when certain errors take place.
<@ASSIGN>
<@CALC>
<@CALLMETHOD>
<@CREATEOBJECT>
<@IFEMPTY> <@ELSE>
</@IF>
<@ISNULLOBJECT>
<@NUMOBJECTS>
<@OBJECTAT>
<@OBJECTS></@OBJECTS>
Copyright © 1999, Pervasive Software. All rights reserved.