Forum Archive

problem with python script

filippocld223

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

Stefano

Ole did reply in the Phytonista forum : duplicate post https://omz-forums.appspot.com/pythonista/post/5780668424388608.