OperatorsΒΆ

  • All the basic operators such as `` +, -, *, /, <=, >=, ==, !=, &&, ||``
  • %: then we have the modulo, used on numbers this returns the remainer.
local var = 1 % 2 // will return 1
  • When used on a string and a table, they become a formater.
local var = "%b%" % {"a", "c"} // will return "abc"
  • !: short equals false
local var = !boolvar // false, will compile as "local var = false == boolvar"

// ++ and --
var++
var--
++var
--var
  • #: The counter. Use this infront of a string, table or userdata to get the number of letters/objects inside of it.
local var = #"hello" // returns 5
local var = #{1, "a", "b", "c", 131} // returns 5