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!
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…
Try this
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.