Questions tagged [difference]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
1answer
2k views

What's the difference between using single and double quotes in strings?

Is there a difference between using single-quoted and double-quoted strings?
9
votes
2answers
1k views

When to use “ is same as” and when to use “==”

{% if foo is same as('bar') %} vs. {% if foo == 'bar' %} When to use first and when to use second? Does one of them has advantages over another?
6
votes
2answers
145 views

Difference between using subscript syntax and “dot” syntax when accessing attributes of a variable or advantages of usage one of them

When to use {{ variable.property }} and when to use {{ variable['property'] }} Is there a difference between these methods of accessing attributes of a variable or advantages of using one of them?