handlebars-cond
1.0.3 • Public • Published handlebars-cond
Handlebars helper that allows you to use comparison conditions like a typical IF statement.
Usage
{{#cond 0 '<' 300}}
correct!
{{/cond}}
{{#cond 0 '>' 300}}
Are you sure?
{{else}}
I do not think so!
{{/cond}}
Parameters
Argument |
Description |
lvalue |
The first value to compare. |
operator |
The comparison operator. Values: == === != !== < > <= >= && and || or typeof. |
rvalue |
The second value to compare. |
Package Sidebar
Install
Weekly Downloads