Help with price bar and bollinger bands

 

Is there an easy wayi to check to see if price bar is above upper bolliger band, and if the close price is above or below the band, and similar test for the lower band?

Reason: