I have a problem in twig which is below :
I want to use a variable which is a string which is a condition ( that i read from a table from a yml file) inside and if statement consider this example.
{% set condition = 'a condition' %}
{% if condition == true ]%
do something
{% endif %}
Notice : the string used as a variable contains a twig code
How is it possible to do that ??
is there any similar to eval() of php in twig ?
thanx in advance