-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Important change to nested if statements.
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a15d007
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, nested if statements would not work because the skip variable would be set to False whenever the end of an if statement would be found.
The skip variable was used to determine when to skip parsing code that was in an if statement where the condition was not met. Example below
When nested conditionals are used, this could quickly create issues.
With the the new changes: