Skip to main content
1 of 3
nicael
  • 2.4k
  • 7
  • 28
  • 48

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?

nicael
  • 2.4k
  • 7
  • 28
  • 48