Checking for non-existing local variables

Dear all,
I have a few objects with a local variable “localvariable” which has an integer value. How can I check if an object has this local variable set? Like, if(objekt.localvariable==0) or if(objekt hasnt localvariable) doesn’t work if objekt does not have that localvariable defined.
Thanks and kind regards, Grues

(You’re talking about a “property”, not a “local variable”.)

Check out the provides operator, DM4 §3.5.

2 Likes

Works, thanks a lot!