AnsweredAssumed Answered

Field calculator

Question asked by fallingdog on Apr 13, 2012
Latest reply on Apr 19, 2012 by fallingdog
I would like to combine two fields, where there is a null value in one field I need it pull the value form the other.

let me explain the problem a little better:

I have field A with mixed number null

I have field B with mixed number null

I want field C to =

if A = null then
  C = B
else
  C=A
so this is what I tried in the code block

  def mySort():   if( !Shem_Pete!==None):     temp= !S_Pete_No!   else:     temp= !Shem_Pete!   return temp



and for the expression

mySort() 

[ATTACH=CONFIG]13515[/ATTACH]

thanks for any help

Attachments

Outcomes