minijinja::tests

Function is_gt

Source
pub fn is_gt(value: &Value, other: &Value) -> bool
Expand description

Test version of >.

This is useful when combined with select.

{{ 2 is gt 1 }} -> true
{{ [1, 2, 3]|select(">", 2) }} => [3]

By default aliased to greaterthan and >.