Added and else part to the condition and comments

Added and else part to the condition and comments