Skip to main content

/images/icons/xs_temp.svg Add Number

math.add myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
math.add myVariable {
  value = 5
}

/images/icons/xs_temp.svg Subtract Number

math.sub myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
math.sub myVariable {
  value = 5
}

/images/icons/xs_temp.svg Multiply Number

math.mul myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
    math.mul myVariable {
      value = 5
    }

/images/icons/xs_temp.svg Divide Number

math.div myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
math.div myVariable {
  value = 5
}

/images/icons/xs_temp.svg Modulus Number

math.mod myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
math.mod myVariable {
  value = 5
}

/images/icons/xs_temp.svg Bitwise AND Number

math.bitwise.and myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
math.bitwise.and myVariable {
  value = 5
}

/images/icons/xs_temp.svg Bitwise OR Number

math.bitwise.or myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
math.bitwise.or myVariable {
  value = 5
}

/images/icons/xs_temp.svg Bitwise XOR Number

math.bitwise.xor myVariable {
  value = 5
}
ParameterPurposeExample
myVariableThis is the variable you want to target with the math operationmyVariable
valueThe value you want to apply to the math operation5
math.bitwise.xor myVariable {
  value = 5
}
I