Mask-group

If-else statement



  • The general form of if statement is -

if(expression){

//code to be executed if condition is true

} else{

//code to be executed if condition is false

}