get the [custom] properties of <object>
Applies to all card objects, backgrounds, cards, stacks
The following function uses the properties property to check whether an object has a certain custom property. The function is passed an object reference as its first parameter and the name of the property to check for as the second parameter. The function returns true if the object has the specified property, and false if it does not:
function hasProperty objref, propname
properties of objref
propname then return true end repeat
To check whether a button named "my_button" has the property country, you could use the previous function as follows:
This text has been mechanically extracted from the Oracle Media Objects 188.8.131.52 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.