1

I have two string variables in twig that i can print properly like

{{ currpage }} , {{ field.value }}

But i can't compare them in an "if". Tried {% if (currpage == field.value) %}, {% if (currpage in field.value) %}, {% if (currpage same as field.value) %} but the code after if is not executed. However if i hardcode a value in the first part like {% if ('blabla' in field.value) %} it works. How should i compare two variables in twig in opencart?

DarkBee
  • 16,592
  • 6
  • 46
  • 58
gerstavros
  • 39
  • 6

0 Answers0