SELECTION CONSTRUCTS
The Selection constructs are used when the flow of execution may flow down two or more paths.I compile it in .Exe
THE IF STATEMENT
The If statement is used to control the flow of execution down one of two or more paths, depending on the result of a logical test. The Else If statement may be used to specify conditions should previous conditions be false, and Else may be used should none of the above be true.
of course on the Selection Statement you can see may example below the last topic on our subject.
-I use the Select Case construct to Access the code, according to which arrow key is pressed on the keyboard or in the screen using the point Cursor.
The Select statement can be used when multiple If statements become messy and difficult to read. Each Case statement is evaluated from the top down. Should the Case statement be true, the section of code associated with the condition is executed. Case Else is used as a catch all.


No comments:
Post a Comment