[][src]Function gtmpl::funcs::not

pub fn not(args: &[Value]) -> Result<Value, String>

Returns the boolean negation of its single argument.

Example

use gtmpl::template;
let equal = template("{{ not 0 }}", "");
assert_eq!(&equal.unwrap(), "true");