Enter a search term above to see results...
On This Page
Functions
Comparison Helpers
Comparison helpers provide utilities for comparing values in templates.
Functions
not
Checks negation (!).
Template Syntax
JavaScript Syntax
is
Checks equality (==).
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | any | First value to compare |
b | any | Second value to compare |
Returns
boolean
- True if values are equal, false otherwise.
Example
notEqual
Checks inequality (!=).
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | any | First value to compare |
b | any | Second value to compare |
Returns
boolean
- True if values are not equal, false otherwise.
Example
isExactly
Checks strict equality (===).
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | any | First value to compare |
b | any | Second value to compare |
Returns
boolean
- True if values are strictly equal, false otherwise.
Example
isNotExactly
Checks strict inequality (!==).
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | any | First value to compare |
b | any | Second value to compare |
Returns
boolean
- True if values are strictly not equal, false otherwise.
Example
greaterThan
Checks if a > b.
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | number | First number to compare |
b | number | Second number to compare |
Returns
boolean
- True if a is greater than b, false otherwise.
Example
lessThan
Checks if a < b.
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | number | First number to compare |
b | number | Second number to compare |
Returns
boolean
- True if a is less than b, false otherwise.
Example
greaterThanEquals
Checks if a >= b.
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | number | First number to compare |
b | number | Second number to compare |
Returns
boolean
- True if a is greater than or equal to b, false otherwise.
Example
lessThanEquals
Checks if a <= b.
Template Syntax
JavaScript Syntax
Parameters
Name | Type | Description |
---|---|---|
a | number | First number to compare |
b | number | Second number to compare |
Returns
boolean
- True if a is less than or equal to b, false otherwise.