In Lua you can compare two variables to see if they are equal using the == equality operator. For instance:
local Variable1 = "Fred" local Variable2 = "Mary" local Variable3 = "Fred" if (Variable1 == Variable3) then trace("These variables are equal!") end