Line 1: |
Line 1: |
− | * '''''Fixed number'''''
| + | <span style="color: #4527a0; font-size: 24px;"> |
| + | '''Fixed number '''</span> |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| Allows one or more actions to be repeated a fixed number of times. | | Allows one or more actions to be repeated a fixed number of times. |
Line 7: |
Line 8: |
| It is ideal for situations where a fixed number of iterations is required, ensuring precision and control in the execution of the macro. | | It is ideal for situations where a fixed number of iterations is required, ensuring precision and control in the execution of the macro. |
| </pre><br/> | | </pre><br/> |
− | | + | <span style="color: #4527a0; font-size: 24px;"> |
− | * ''''' While 'condition' '''''
| + | '''While 'condition'''</span> |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| Before executing any instruction inside the loop, the condition is first evaluated. | | Before executing any instruction inside the loop, the condition is first evaluated. |
Line 18: |
Line 19: |
| If the condition is false from the start, the code inside the loop is not executed at all. | | If the condition is false from the start, the code inside the loop is not executed at all. |
| </pre><br/> | | </pre><br/> |
− | | + | <span style="color: #4527a0; font-size: 24px;"> |
− | * ''''' Do once and repeat while 'condition' '''''
| + | '''Do once and repeat while 'condition'''</span> |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| In this type of loop, the actions inside the loop are executed once before the condition is evaluated for the first time. | | In this type of loop, the actions inside the loop are executed once before the condition is evaluated for the first time. |
Line 28: |
Line 29: |
| | | |
| The distinguishing feature here is that the code inside the loop is guaranteed to be executed at least once, regardless of the initial condition. | | The distinguishing feature here is that the code inside the loop is guaranteed to be executed at least once, regardless of the initial condition. |
− | </pre> | + | </pre><br/> |
| + | <span style="color: #4527a0; font-size: 24px;"> |
| + | '''Endless Lop (until break)'''</span> |
| | | |
− | * ''''' Endless Lop (until break) '''''
| |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| This is a type of loop that runs indefinitely until a 'Break From Loop' action is encountered. | | This is a type of loop that runs indefinitely until a 'Break From Loop' action is encountered. |