Added a condition and tested sucessfully

Added a condition and tested sucessfully