Awee

eq

Eq returns true if the value equals the given parameter.

Eq returns true if the value equals the given parameter. Numbers compare numerically across int/float types, strings compare verbatim, and other types fall back to direct equality.

Input

any

Parameters

#TypeRequired
0anyyes

Returns

bool

Examples

Compare a status string

Input

status = "active"

Template

{{ status | eq:'active' }}

Output

true

Check for an empty inbox

Input

unread = 0

Template

{{ unread | eq:0 }}

Output

true

Check a feature flag

Input

newsletter = true

Template

{{ newsletter | eq:true }}

Output

true

How is this guide?

On this page