Turn on debug mode in Twig. Use the debug extension to view a variable in two scenarios.
First way
{% set car = 'Honda' %}
{% debug car %}
will show you that the car is still a Honda string
however the second way
{% set car %}Honda{%endset%}
{% debug car %}
will show you that the car is now
Object Twig_Markup ([content: protected] => car)
, .
: Twig 1,5 debug
:
{% set car = 'Honda' %}
{% debug car %}
:
{% set car %}Honda{%endset%}
{% debug car %}