0

I would like to use the phalcon ternary operator provided by version 3.4, but I would like to use it with the one validation at the same time.

{% set pageType = 'basicSetting' %} {{ pageType == 'basicSetting' ? 'class="active"' : '' }}

The above example is from here

1 Answers1

0

After some research and analysis, I was able to find this,it is a little example

{% set result_that_you_want = (value==1) ? 'the result is 1' : 'the result is not the same the 1' %}