Is there a shorted way to write the following expression in python?
I am looking to check if at least one of the variables has the value "None"
thank you
if hBorder1!="None" or hBorder2!="None" or vBorder1!="None" or vBorder2 !="None":
return "BorderByType"
else:
return ""
Aucun commentaire:
Enregistrer un commentaire