I'm trying to run a field calculator statement to fill an integer field based on a preceding text field - so depending on what the text is, a certain number will be assigned to it. However, the field calculator statement I'm using only seems to work if the text has no spaces in it... any help with this would be greatly appreciated!
The expression is:
And the code black is:
if Typology is "Allotments":
elif Typology is "Amenity Green Space":
elif Typology is "Park and Recreation Ground":
However, in the example above, only allotments will be assigned the requested number. If I removed the spaces from the other text, the calculation works but this isn't acceptable for what I need.
Many thanks in advance.