Skip to main content
edited tags
Link
nicael
  • 2.4k
  • 7
  • 28
  • 48
edited tags
Link
nicael
  • 2.4k
  • 7
  • 28
  • 48
Source Link
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?