Use conditions in the scanner