Struct bracket::helper::if::If [−][src]
pub struct If;
Expand description
Evaluates an argument as truthy.
For block execution if the value is truthy the inner template is rendered otherwise each conditional is evaluated and the first one which returns a truthy value is rendered.
When executed in a statement this helper returns whether it’s argument is truthy.