Skip to content

Commit a816bea

Browse files
authored
Merge pull request #691 from animeshsrivastava24/patch-28
Code Highlight markup and Link colouration fix else.adoc
2 parents 3e8f390 + 5f5ea46 commit a816bea

File tree

1 file changed

+1
-1
lines changed
  • Language/Structure/Control Structure

1 file changed

+1
-1
lines changed

Language/Structure/Control Structure/else.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ subCategories: [ "Control Structure" ]
1313

1414
[float]
1515
=== Description
16-
The `if...else` allows greater control over the flow of code than the basic link:../if[if] statement, by allowing multiple tests to be grouped together. An `else` clause (if at all exists) will be executed if the condition in the `if` statement results in `false`. The `else` can proceed another `if` test, so that multiple, mutually exclusive tests can be run at the same time.
16+
The `if...else` allows greater control over the flow of code than the basic `link:../if[if]` statement, by allowing multiple tests to be grouped. An `else` clause (if at all exists) will be executed if the condition in the `if` statement results in `false`. The `else` can proceed another `if` test, so that multiple, mutually exclusive tests can be run at the same time.
1717
[%hardbreaks]
1818

1919
Each test will proceed to the next one until a true test is encountered. When a true test is found, its associated block of code is run, and the program then skips to the line following the entire if/else construction. If no test proves to be true, the default `else` block is executed, if one is present, and sets the default behavior.

0 commit comments

Comments
 (0)