Skip to content

Please help with if/else #9132

Answered by LostLuma
xKotelek asked this question in General
Dec 11, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello, you're probably looking to use an elif statement instead of several ifs in a row, as it allows only executing the final else block if none of the if conditions were met. See the Python tutorial and Python documentation for more information.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xKotelek
Comment options

Answer selected by xKotelek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants