I have two optional parameters in my ArcMap model (City and date) and I want to use the tool calculate a value to create an expression that will give me a boolean (true-false).
I want the code to return me a true statement if a city and a date have been entered by the user of the model and false if only one of the two have been requested (ex: city=Chicago and no date has been entered).
So far, I have this :
expression :
x("%City%", "%Date%")
Code :
def x(City, Date)
if City is not None and Date is not None:
returns True
else:
return False
Type: Boolean