Bonjour,

Je souhaite afficher 3 messages différents d'après le if, je ne sais pas pourquoi mais il n'y a qu'un seul if qui s'exécute. Il s'agit du <<elif title2 != ''and title3 != '':>>, si je l'enlève alors ce sera le else qui s'exécutera alors que normalement j'ai des valeurs pour les autres elif.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
if (title2 != '') and (title3 == ''):
       print(title1 + "<==============>"+ title2+ "===============> PAS DISPONIBLE" )
 
elif (title3 != '') and (title2 == ''):
       print(title1 + "<==============>PAS DISPONIBLE<===============>" + title_lang)
 
elif title2 != ''and title3 != '':
       print(title1 + "<==============>"+ title2+ "===============>" + title_lang)
 
 else:
     print(title1 + "<==============>PAS DISPONIBLE<===============>PAS DISPONIBLE")
Merci