Added the final part to the conditional

Added the final part to the conditional and tested successfully