Hi,
I have a runtime listener checking for collisions in my game. I want to ignore collisions with the floor or with objects with no (nil) .myName property.
You can see in the image that without the logic I am able to print the object names fine, but when I try to use the below logic to ignore collisions with the floor it wont print anything to the terminal. I have tried both quotes and no quotes around "floor and “nil”.

function beanCheck(event)
obj1 = event.object1.myName;
obj2 = event.object2.myName;
if(obj1 or obj2 == "floor" or "nil") then
test = false;
else
test = true;
end
if(test == true) then
print(obj1 .. " " .. obj2);
end
--print(obj1 .. " " .. obj2);
end
[import]uid: 31694 topic_id: 22057 reply_id: 322057[/import]