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,

Nhận xét

Bài đăng phổ biến từ blog này

How to set the SDK, NDK and JDK path to android studio?

physicsjs - Increase the restitution value for circle and retangle

Select all values from list box in a single click using javascript