|Lets say you are a teacher of your class and are ready to grade your students based on their performance in the month end tests. Now, here you have different conditions to satisfy like if a student scores 70 out of 100 should be considerd as distinction but only if s/he also has passed all the subjects with same grades/percentage now that you knw the condition u will write a simple if else ()..|
lets complicate the process ..
lets say if two students hav scored same marks in all subjects then you may wnat a diffenrt condition to test them ..lets say you want to test their attendednce percentage alongwith percentage of the marks ..here iswhere u need a nested if function.
...long story short,
nesting if function is to testify the truth value of the statement which depends on the complexity of the statement ..a complex situation like the one described above will need nested conditions to test its truth/false value.