I am trying to use field calculator where values will be taken from one field of two fields with if condition. If first field is null then value will be taken from second field. In VB there is 'is Null' keyword. What is there in Python?
You can use
value is None
For example, in your expression you can do
!field1! if not !field1! is None else !field2!
alternately just do
!field1! or !field2!
Try this
Take a look at this thread
arcgis 10.0 - How do you test for a NULL string field in the Field Calculator with Python? - Geographic Information Sys…
Os membros conectados podem publicar, acompanhar atualizações e muito mais. É novo por aqui? Cadastre-se gratuitamente.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.