• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The if Statement

The if statement is an example of a flow control statement that has many uses.

The if statement enables your JavaScript script to choose between one of two alternative groups of statements to run (or execute). The choosing is done with a Boolean (true of false) condition.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint