if statement

     If the condition is true the if statements are executed otherwise the next statement will execute.

Syntax

     if(condition)

     {

        Statements;

     }


Flow chart
if statement flowchart


Example

   if(10<50)

   {

      alert("Executed");

   }



Example Program:- (Editor)


Editor is Loading...

Advertisement




Tags:
if statement in javascript allinworld99, if statement in java allinworld99, if statement in c, if statement in cpp, if flow chart in allinworld99,

0 nhận xét:

Đăng nhận xét