{foreach item=variable from=$variables name=n} {/foreach} {foreach item=symbol from=$formula_1->symbols name=n} {/foreach} {foreach item=i from=$values key=row name=m} {foreach item=j from=$i name=n} {/foreach} {foreach item=symbol from=$formula_1->symbols key=column name=n} {/foreach} {/foreach}
{$variable}A{$symbol}
{if $j == 1}{$trueValue}{else}{$falseValue}{/if}{$finalValues.$row}{if $column|in_array:$formula_1->inputColumnNumbers}{if $formula_1->result[$column][$row] == 1}{$trueValue}{else}{$falseValue}{/if}{else}{if $formula_1->isSingleVariableFormula}{set x=$symbol|array_search:$formula_1->variables}{if $i[$x] == 1}{$trueValue}{else}{$falseValue}{/if}{else} {/if}{/if}