Check if DTL variable is an empty object
I have a DTL that calls a custom function that returns an object. How do I code the IF statement to check if the object is empty. e.g. IF tObject={}
Product version: IRIS 2023.1
I have a DTL that calls a custom function that returns an object. How do I code the IF statement to check if the object is empty. e.g. IF tObject={}
set myObj={} if myObj.%Size()=0 { write "This is an empty object" }
Is your object a %DynamicObject?
Yes.