Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3332 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Agu 25
2632
3
Feb 25
3883
0
Mei 24
46
1
Apr 24
3558
4
Sep 23
5099