Hi Jen,You're close. What is going wrong in your script is that in the definition of the function you provide your field name, which contains a dot. What you should provide is the name (any name) for a variable. In my example I use "building_height" and "store_height". As pre-logic script code you can use this (this includes logic for buildings that have more than 2 stories and being able to define the storey height):def getStories(building_height, store_height):
return "{0} storey".format(int(building_height / store_height) + 1)
The function is called like this:getStories( !YourFieldName!, 4)
Please not that in this code 4 height units will return "1 storey", but 4.1 height units, will return "2 storey". I don't know if that is entirely correct...Kind regards,Xander