{if not is_object($resultValue)} {assign var='inputValue' value = $resultValue} {else} {assign var='inputValue' value = $resultValue->$controlKey} {/if} {if $controlValue[3][$inputValue] eq 'verde'} {$controlValue[3][$inputValue]} {/if} {if $controlValue[3][$inputValue] eq 'azul'} {$controlValue[3][$inputValue]} {/if} {if $controlValue[3][$inputValue] eq 'naranja'} {$controlValue[3][$inputValue]} {/if} {if $controlValue[3][$inputValue] eq 'rojo'} {$controlValue[3][$inputValue]} {/if} {if $controlValue[3][$inputValue] eq 'blanco'} {$controlValue[3][$inputValue]} {/if} {if $controlValue[3][$inputValue] eq 'amarillo'} {$controlValue[3][$inputValue]} {/if}