Update conditional logic