function onGrab(subitem) --The if statement is written in form of "if(Condition) then" if subitem == "bell" then print("ring ring") else print("This is not a bell") end end