You need to put code inside code tags (# button abvove the edit box for plain or the blue "Lua" button next to it for pretty).
In your function:
Lua Code:
if (type(nodes[uiMapId][coord].id) == "table") then
dungeonID = nodes[uiMapId][coord].id[1]
else
dungeonID = nodes[uiMapId][coord].id
end
if (not dungeonID) then return end
if the the table does not contain an id entry (dungeonID is empty) it just exits doing nothing.
Lua Code:
nodes[2095][42789333] = {
uiMapId = 2022,
name = L["Exit"],
type = "Exit",
showInZone = true,
} -- Ruby Life Pools
does not contain an id entry (it does have a
uiMapId entry).