I am trying to calculate a percentage of a field based off the value of another field. if damage = x then return the value of field !mrkt_imprv! * y
y = percentage value
my code is below its returning an error in the calculate field
def dam_cal(): if !DAMAGE! == 'Affected': return !IMPRV_MRKT! * .1 elif !DAMAGE! == 'Minor': return !IMPRV_MRKT! * .2 elif !DAMAGE! == 'Major': return !IMPRV_MRKT! * .65 elif !DAMAGE! == 'Destroyed': return !IMPRV_MARKT! * .85
the error is #000989 (line 2) Parameters are not valid.