function objectActionExists(obj, actionName)
local strActionName = "'" .. actionName .. "' executed"
if obj:isEmpty() then
print("Object is null")
return false
end
local act = obj.ObjectActions
-- iterate through the object list with a for loop...
for i = 1, #act do
if act[i]:getName() == strActionName then
return true
end
end
return false
end