mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-17 01:45:55 +08:00
8 lines
194 B
Plaintext
8 lines
194 B
Plaintext
# utils.nas
|
|
# 2023 by ValKmjolnir
|
|
use std.math;
|
|
|
|
# when count can be divided exactly by times, return true
|
|
var times_trigger = func(times, count) {
|
|
return math.mod(times, count)==0;
|
|
} |