I did not find a problem here )
-- script: lua function build_obj() local z={attribute1="blah", attribute2="blah", attribute3="spam"} return z end obj1=build_obj() if obj1.attribute1=="blah" then trace("do awesome stuff") end function TIC() exit() end