is
Is returns true if the value equals any of the given parameters.
Is returns true if the value equals any of the given parameters.
Input
any
Parameters
| # | Type | Required |
|---|---|---|
| ... | any | yes |
Returns
bool
Examples
Match a single status
Input
status = "active"Template
{{ status | is:'active' }}Output
trueMatch any of several roles
Input
role = "admin"Template
{{ role | is:'admin','superuser' }}Output
trueHow is this guide?