If,Else and Switch Statements

'If' and 'Else statements help to run a particular statement, based on whether the condition its true or false. We will take the example of 'Calculator' from the previous lesson and show you how 'If' and 'Else statements can be used to convert it into a 'Calculator' performing addition, subtraction, multiplication and division.

Get hands-on with 1200+ tech skills courses.