AnsweredAssumed Answered

Field Calculator Python IF statement

Question asked by m.orl79 on May 28, 2017
Latest reply on Oct 17, 2018 by Dan_Patterson

Hi everyone,

I’m trying to use IF statements in field calculator to fill a field starting from another field’s values:


Field to fill up: Historic_period

Field already filled: Century


Statement in human language:

IF Century = 6 then write “late antiquity”, IF Century=10 the write “Middle age” etc etc.


I’m struggling trying to set up the correct syntax in ArcGis Pro Filed Calculator but I’m always missing something…..

Can someone help and guide me step by step (I don't know how to use the helpers and the Code Block....)?

Thanks in advance,