How to select strike based on Bid Ask Difference

How do I design this below Entry condition?
I need to Sell an OTM(lets say 10% away of spot) CE of next month’s expiry only if the Bid Ask price difference is less than Rs.2. If the difference is not within that I need to step away 1 tick until i get difference of Rs.2. I am able to choose the value of the OTM CE & the expiry, But how do I tell that the Bid-Ask must be less than Rs.2 in the Position Strike’s Formula Builder?
Basically i want to trade only on narrow price spread and not wide price spread.

Any help/direction in this regard is much appreciated. Thanks.