adapter: improved logical values in conditions