attribute with Code value is set only if expresion evaluates to true