Jump to content

if and else


Recommended Posts

hi guys, lets say i have this button x , when i press x i want to display msg fail if the item broke or (else)  msg succes if the item dont broke, but every time i get the same msg fail.

Does not matter if the object succeeds or not i get the fail msg.

How can i make this function to display succes when the item dont broke?

def test(self, PopupMessage):
            if PopupMessage:
                self.PopupMessage(localeInfo.BIO_FAIL) // msg say fail
            else:
                self.PopupMessage(localeInfo.BIO_SUC) // msg sa succes

 

Ty for help

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.