How to implement this condition..

Printable View