Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Problem with python script
-
trying this code :
#coding: utf-8 import workflow action_in = workflow.get_input() if action_in.endswith(' ')==True : action_out='True' else: pass workflow.set_output(action_out)
Editorial gives this error: NameError:line 10 name "action_out" is not defined
-
You should set
action_out
to some default value before the if statement. If the condition isn't true, you never setaction_out
to any value, so it isn't defined. Alternatively, you could set it to a different value in theelse
part. -
oh scuse me xD