a = arg[1] b = arg[2] if a == "r" then turtle.select(tonumber(b)) turtle.equipRight() end if a == "l" then turtle.select(tonumber(b)) turtle.equipLeft() end