I am trying to pass an item out of the compound/nested if/elif/else statement.
if x == 0: do something elif x == 1: do something else elif x == 2: if x == 2 and x == whatever: do something elif x == 2 and x == whatever: do something else: pass it back out elif x = 3: do something else: do something How can i pass it back out of the inner if so that it gets checked for whether its equal 3?
Does pass statement work here? continue keeps throwing an error.
passstatement is only a place holder, and it doesn't do anything.xequal to both 2 and 3 at the same time? If you want your condition to be checked every time, change it fromeliftoif