Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

See Using trace() function

  • No labels