if(String(newVar) === {{ control.hiddenOrVisible === 'hidden' ? control.config.hiddenVarValue : control.config.visibleVarValue}} {{ control.hiddenOrVisible === 'hidden' ? control.config.hideIfVariableIsEmpty ? '|| !newVar' : '' : control.config.showIfVariableIsEmpty ? '|| !newVar' : ''}}) { document.getElementById("{{control.id}}").style.opacity = {{control.hiddenOrVisible === 'hidden' ? 0.5 : 1}}; enableControl("{{control.config.name + '.' + control.config.text}}", {{control.hiddenOrVisible === 'hidden' ? false : true}}); } else { document.getElementById("{{control.id}}").style.opacity = {{control.hiddenOrVisible === 'hidden' ? 1 : 0.5}}; enableControl("{{control.config.name + '.' + control.config.text }}", {{control.hiddenOrVisible === 'hidden' ? true : false}}); }