lundi 6 décembre 2021

How to stop IT loop in FOR loop without stopping the FOR loop

        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?

Aucun commentaire:

Enregistrer un commentaire