Hi!
I have created a model to automate a task but having difficulty with my optional parameter (variable substitution) with bloc code of my field calculator tool. I want to calculate the field Restrictio only if the user type something in the text box otherwise just pass (keep the current value in the field). Here my model:
![](/legacyfs/online/385277_2017-11-30 09_20_21-Table.png)
The python script:
def UpdateField(value = "%ModRestric%"):
if value !="":
return value
else:
pass
Thanks for your help
Jonathan