İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3312 Görünümler

Hello everybody:

PLease friends, i am working with a caracter which must be an 'A' or 'B' or 'C'.

I have tried this:

  if code_TVA not in ['A', 'B', 'C'] :

but i didnt get the result that i am waiting.

Can anyone help please.

Thanks a lot in advance.

Best regards.

Avatar
Vazgeç
En İyi Yanıt

This is not related to odoo but python itself, you dont really need the list:

'o' in 'some' => True

'me' in 'something' => True

'to' in 'bottle' => False

'me' in ['some','other','medicine'] => False

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ağu 25
2574
3
Şub 25
3848
0
May 24
46
1
Nis 24
3549
4
Eyl 23
5087