If is defined as in the event, or on the condition, that something happens. An example of if is someone saying they'll go to the beach when the sun shines.
While:
a period of time especially when short and marked by the occurrence of an action or a condition : time stay here for a while. 2 : the time and effort used (as in the performance of an action) : trouble worth your while. while.
Answers & Comments
Answer:
If:
If is defined as in the event, or on the condition, that something happens. An example of if is someone saying they'll go to the beach when the sun shines.
While:
a period of time especially when short and marked by the occurrence of an action or a condition : time stay here for a while. 2 : the time and effort used (as in the performance of an action) : trouble worth your while. while.