From 847e119e5db6956131805e5b2ccc3727ece8bbb2 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 15 Jul 2022 21:06:32 +0200 Subject: [PATCH] [wiki] Add documentation for `mod` function Signed-off-by: Knut Ahlers --- wiki/Templating.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wiki/Templating.md b/wiki/Templating.md index 68a6491..1107fd9 100644 --- a/wiki/Templating.md +++ b/wiki/Templating.md @@ -212,6 +212,19 @@ Example: < Last Quote: #32 ``` +#### `mod` + +Returns int from calculation: `int1 % int2` + +Syntax: `mod ` + +Example: + +``` +# {{ mod 12 10 }} +< 2 +``` + #### `mul` (deprecated: `multiply`) Returns float from calculation: `float1 * float2`