I use if condition to input the value, but the result shows the error.
Thanks for help.
I use if condition to input the value, but the result shows the error.
Thanks for help.
Python is a structured language so whitespace matters. Notice the tabs.
filename = ...
if filename is None:
#do something
else:
#do something else
Hi, sorry I didn't get it. Should I delete the whitespace?
if filename is not None:
fileid=self.getSibling("fileidnone").props.text
else:
fileid=elf.getSibling("fileid").props.text
You'll need to do an intro to python course to ease your scripting learning curve.
def runAction(self, event):
...
if filename is not None:
fileid=self.getSibling("fileidnone").props.text
else:
fileid=elf.getSibling("fileid").props.text
Thanks for your help. I'm learning and keeping moving.