Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3313 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
srp 25
2574
3
úno 25
3848
0
kvě 24
46
1
dub 24
3549
4
zář 23
5087