Function: sub
The sub()
function performs subtraction, subtracting one number from another.
- If both numbers are integers, the result will be an integer.
- If either number is a float, the result will be a float.
Syntax:
<number>.sub(<number>)
Example:
var.test_value = 21
var.new_value = var.test_value.sub(6)
case true:
// Render as: "New value: 15"
return DEBUG, "New value: @var.new_value"