mardi 30 juillet 2019

If an object exist, take an action in python

I'm very new to python and I'm trying to make an if then statement as the one used in Delphi. I looked at other posts about this but all the examples I've encountered are with "print". I have an object that I want to handle if appears, for example if object(name_mapping) exists then take action x and action y. Can somebody help me?

if (object_mapping) is not none:

Aucun commentaire:

Enregistrer un commentaire