While can also be used to iterate a set of statements determined by a situation. Usually though is favored when range of iterations aren't known beforehand. You may as well use if-else for nested Ifs and when-Else-If ladder when various situations are to generally be performed on just one variable. https://aspnethomeworkhelp52868.thenerdsblog.com/34280767/pay-someone-to-take-asp-net-assignment-for-dummies