Hi,
I have a problem with the syntay of python and hope to get some help.
In Model Builder I have a table and want to check wether a certain field in the table contains a value or is empty. So I use the 'calculate value' with a boolean data type. My code looks like this:
the expression is:
I get the error message
ERROR 000989
Python-Syntaxfehler: Parsing error SyntaxError: invalid syntax (line 1)
Can anyone please explain what I do wrong?
Many thanks,
Tegir
I have a problem with the syntay of python and hope to get some help.
In Model Builder I have a table and want to check wether a certain field in the table contains a value or is empty. So I use the 'calculate value' with a boolean data type. My code looks like this:
Code:
def CheckValueExists(gefülltesFeldBis1):
import arcpy
if gefülltesFeldBis1 != '':
return "true"
else:
return "false"Code:
CheckValueExists("%gefülltesFeldBis1%")Quote:
ERROR 000989
Python-Syntaxfehler: Parsing error SyntaxError: invalid syntax (line 1)
Many thanks,
Tegir