For your need : you can not use self …
Then : something like
Code:
{if(shemas_i001.NAOK == "A5" or shemas_i001.NAOK == "A6",shemas_i001.question)}
{if(shemas_i002.NAOK == "A5" or shemas_i002.NAOK == "A6",shemas_i002.question)}
…
{if(shemas_i124.NAOK == "A5" or shemas_i124.NAOK == "A6",shemas_i124.question)}
You can't use implode sirectly here …
You can use list
Code:
{list(
if(shemas_i001.NAOK == "A5" or shemas_i001.NAOK == "A6",shemas_i001.question),
if(shemas_i002.NAOK == "A5" or shemas_i002.NAOK == "A6",shemas_i002.question),
…
if(shemas_i124.NAOK == "A5" or shemas_i124.NAOK == "A6",shemas_i124.question)
)}
but only `,` for separator …
Maybe with str_replace :
Code:
<ul><li>{str_replace(",","</li><li>",list(
if(shemas_i001.NAOK == "A5" or shemas_i001.NAOK == "A6",shemas_i001.question),
if(shemas_i002.NAOK == "A5" or shemas_i002.NAOK == "A6",shemas_i002.question),
…
if(shemas_i124.NAOK == "A5" or shemas_i124.NAOK == "A6",shemas_i124.question)
))}</li></ul>
If you have a comma in one question : it broke …
We really need a implodeif … it's not the 1st time i need it …