If Else and While Function Statements