The weather is the condition of the atmosphere in one area at a particular time, for example if it is raining, hot of windy.

(In this sentence can we use ' whether' instead of 'if' after 'for example' to have the same meaning?)
English - Writeacher, Tuesday, November 19, 2013 at 7:27am
Yes, in that sentence "whether" and "if" can be interchangeable.

=============================
Thank you for your help. Then what does " for example..windy" modify? Is it an adjective phrase modifying 'condition'?

The whole phrase -- "for example, if it is raining, hot, or windy" -- seems to modify "weather."

In the sentence "The weather is the condition of the atmosphere in one area at a particular time, for example if it is raining, hot or windy," the phrase "for example if it is raining, hot or windy" serves as an adverbial phrase that modifies the verb "is." It provides specific examples of different weather conditions that can occur. So, it does not directly modify the noun "condition," but instead adds information about the conditions that can be included in the overall concept of weather.