AnsweredAssumed Answered

Problem with a simple if statement

Question asked by rhawk204 on Dec 20, 2019
Latest reply on Dec 20, 2019 by rhawk204

I am new to Python programming and i am having trouble with a few lines of code that should be easy. The code is below. It is a very simple part of my program. 


When i run this code in PythonWin line 57 puts on my screen a 0 or a 1 depending whether i have selected something in another part of the program. Line 58 prints out the feeder name. Line 59 is the problem. When i print this out it shows that mY_label is equal to "NONE". Why would line 57 show correctly and line 59 does not?

Thanks for any assistance.