Well, you are having question as well as answer. Just convert your words(what you have given above) into as a logic using if block.
Well, you are having question as well as answer. Just convert your words(what you have given above) into as a logic using if block.