The sole purpose that can be attributed to IF statement is to see whether a condition is met and returns a value based on the output obtained.
The IF statement which is regarded as a decision-making statement helps to know if a condition is been met, base on a given criteria.
Therefore , it serves as one that executes one set of code, provided some of the condition that have been put in place is met accordingly.
Read more about IF statement at:
https://brainly.com/question/11073037
#SPJ9