[python] If my variable is empty, do this
Solved
Stephane70
-
sebsauvage Posted messages 33284 Registration date Status Modérateur Last intervention -
sebsauvage Posted messages 33284 Registration date Status Modérateur Last intervention -
Hello,
I'm trying to set up a condition in my program like: "If my variable is empty, do this", but I'm having trouble with it.
I've tried:
But it always returns an error.
Can you please help me?
Thank you in advance.
Stéphane70
I'm trying to set up a condition in my program like: "If my variable is empty, do this", but I'm having trouble with it.
I've tried:
if var==' ':
But it always returns an error.
Can you please help me?
Thank you in advance.
Stéphane70
Configuration: Windows XP Firefox 2.0.0.12