math.ModBool
Reports whether the modulus of two integers equals 0.
- Syntax
- math.ModBool VALUE1 VALUE2
- Returns
- bool
- Alias
- modBool
Usage
The math.ModBool function reports whether the modulus of two integers equals 0. Use this function to determine whether VALUE1 is evenly divisible by VALUE2. The function converts both values to integers before dividing, removing any fractional part, and throws an error if VALUE2 is 0.
Examples
{{ math.ModBool 15 3 }} → true
{{ math.ModBool 15 4 }} → falseLast updated:
October 21, 2026
:
content: Apply style guide to math functions (658ef2b60)
Improve this page