|
Decision Structures |
Top Previous Next |
Decision Structures are used to conditionally execute code, according to the existence or absence of certain conditions.
Common uses for decision structures are to verify the validity of arguments, to handle errors in execution, to branch to different sections of code, etc.
An example of a simple decision structure would be:
dim x, y as byte dim s as string
if x < y then s = "x is less than y" else s = "x is greater than, or equal to, y" end if
|
The following decision structures are implemented in Tibbo Basic: