Guest, before posting your code please take these rules into consideration:
It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
Don't share a wall of code. All we want is the problem area, the code related to your issue.
Since the second if condition is true, the following "elif" or "else" conditions will be ignored.
Chained if statements (if -> elif -> elif -> elif -> else) executes when the statement/block of the first true condition and ignores the rest.
Just like @Krusty the Senile mentioned if the one condition isn't met it will continue down the conditions until it matches. Then it will execute the code within the statement and will jump ahead after the if statement.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.