Math and logic operator

Hello. Where can I get docs for math actions (plus, minus) and login operator ( AND, OR ) ?

They’re all functions in Hugo. We generally follow the Go template function names where they exist.

Comparison operators: eq, le, lt, ge, gt, ne.

Logic operators: and, not, or.

Math operators: add, div, mod, modBool, mul, sub.

We’re working on improving the docs, but here’s what we have right now.

1 Like

Thanks, this is what I need! :+1:

1 Like