for job in jobs:
if int(dpr) <= int(user.dpr):
if str(user.gender) == 'male:
if str(orpi) == 'yes':
if int(profil) >= int(user.profil):
bot.send_message(message.chat.id, str(name)
**now i want to exit the "if's" and go to next "job in for loop**
else:
if int(profil) <= int(user.profil):
bot.send_message(message.chat.id, str(name)
**now i want to exit the "if's" and go to next "job in for loop**
else:
if str(orpi) == 'yes':
if int(profil_fem) >= int(user.profil):
bot.send_message(message.chat.id, str(name)
**now i want to exit the "if's" and go to next "job in for loop**
else:
if int(profil_fem) >= int(user.profil):
bot.send_message(message.chat.id, str(name)
**now i want to exit the "if's" and go to next "job in for loop**
Hello, I want to make "now i want to exit the "if's" and go to the next "job in for loop" in the code, return to the for loop (job in jobs), and process to the next job. Is there any command for it?
bot.send_messagethere is no more code and the program should continue with the next loop.continue. I suggest making a simple test case with print statements to help you understand the flow. At each point that you have**now...(# is better used for comments here btw), the next step in the logic is to exit the nested if statements and continue the for loop. If you are continuing to code below your**now...comments then just add an else statement to the innerif. Deeply nesting continues makes your code harder to understand in the future.