unit_convertible_with
Checks if two units are convertible.
Example
1
{{ 'kg' | unit_convertible_with: 'g' }} => true
Input
Type | Parameter | Description | Required |
---|---|---|---|
string | unit1 | The first unit. Comes before the | sign. | Required |
string | unit2 | The second unit |
Output
Type | Description |
---|---|
bool | Whether the units are convertible |