If…Else Statements

Submitted by: 
In this tutorial, we are going to learn about If, Else, Else If Statement using JavaScript . These all statement execute with a condition. With the use If, Else, and Else If , you can make your program knowledgeable. If Statement - JavaScript This is If Statement. It will execute if the condition is True. < script > var age = 16 ; if ( age < 18 ) { { alert ( " You are a minor." ) ; } }...
Submitted by: 
PHP If…Else Statements The if statement is used to execute code with condition. If the value of the condition is True then execute the statement else execute another statement or simply end the execution. There are three combination of the If statement namely: if statement – only one condition is executed. if...else statement – only one condition is executed but it will execute another statement...