Add Number
math.add myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.add myVariable {
value = 5
}
Subtract Number
math.sub myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.sub myVariable {
value = 5
}
Multiply Number
math.mul myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.mul myVariable {
value = 5
}
Divide Number
math.div myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.div myVariable {
value = 5
}
Modulus Number
math.mod myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.mod myVariable {
value = 5
}
Bitwise AND Number
math.bitwise.and myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.bitwise.and myVariable {
value = 5
}
Bitwise OR Number
math.bitwise.or myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.bitwise.or myVariable {
value = 5
}
Bitwise XOR Number
math.bitwise.xor myVariable {
value = 5
}
| Parameter | Purpose | Example |
|---|---|---|
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value | The value you want to apply to the math operation | 5 |
Example
Example
math.bitwise.xor myVariable {
value = 5
}