Hello everyone. I am new to coding and need some help using the calculate field option.
I have one field (!ARA!) and another field (!Class!). When area is a certain size, I would like to change the attribution of !Class! to be either 25, 50, 100, or 200.
Should the field name be !Class!?
Expression type : Python 3
What should the expression be?
Is this the correct code block?
def Reclass(!ARA!):
if !ARA! is <= 1000:
return 25
elif !ARA! >= 1000:
return 50
elif !ARA! >= 2000:
return 100
elif !ARA! >= 5000:
return 150
I keep getting syntax errors. I will appreciate any help! Thank you in advance.