Category:Control Structures: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
==Introduction==


Normally, statements in an application are executed one after the other in the order in which they’re written. This process is called sequential execution.  
Normally, [[statements]] in an application are executed one after the other in the order in which they’re written. This process is called sequential execution.  


Various BR statements enable you to specify that the next statement to execute is not necessarily the next one in sequence—this is called transfer of control.
Various BR statements enable you to specify that the next statement to execute is not necessarily the next one in sequence—this is called transfer of control.
Line 7: Line 6:
All applications can be written in terms of only three control structures:
All applications can be written in terms of only three control structures:


# the sequence structure,
# the sequence structure  
# the selection structure, and
# the selection structure  
# the repetition structure.
# the repetition structure
 
Control structures include these statements:
*[[Do Loop]]
*[[For Next]]
*[[GoTo]]
*[[If]]
*[[Nested Control Structures]]

Latest revision as of 01:26, 2 July 2015

Normally, statements in an application are executed one after the other in the order in which they’re written. This process is called sequential execution.

Various BR statements enable you to specify that the next statement to execute is not necessarily the next one in sequence—this is called transfer of control.

All applications can be written in terms of only three control structures:

  1. the sequence structure
  2. the selection structure
  3. the repetition structure

Control structures include these statements:

Pages in category "Control Structures"

The following 5 pages are in this category, out of 5 total.