Set

You can set variables on the fly using the 'set' variable:

{% set var as 'value' %}

Note that HiFi currently uses 'as' rather than the '=' sign that the current Twig documentation shows.