or

```html
{% if game.purchased %}
  {% set buttonText = _('Install') %}
  {% set buttonClass = 'btn-install' %}
{% else %}
  {% set buttonText = _('Play') %}
  {% set buttonClass = 'btn-play' %}
{% endif %}
<button data-app-url="{{ game.app_url }}" data-game-slug="{{ game.slug }}" class="btn btn-big {{ buttonClass }}">{{ buttonText }}</button>
```