Skip to main content
edited body
Source Link
Hornbydd
  • 44.6k
  • 5
  • 42
  • 84

The code you seek would be something like this:

testme(!roomname!,!spaceddiscriminator!)

def testme(x,y):
  if x ==is None:
    return y
  else:
    return x

As you can see you can pass more than one field value into your function, in your case the value from the very field you are updating.

The code you seek would be something like this:

testme(!roomname!,!spaceddiscriminator!)

def testme(x,y):
  if x == None:
    return y
  else:
    return x

As you can see you can pass more than one field value into your function, in your case the value from the very field you are updating.

The code you seek would be something like this:

testme(!roomname!,!spaceddiscriminator!)

def testme(x,y):
  if x is None:
    return y
  else:
    return x

As you can see you can pass more than one field value into your function, in your case the value from the very field you are updating.

Source Link
Hornbydd
  • 44.6k
  • 5
  • 42
  • 84

The code you seek would be something like this:

testme(!roomname!,!spaceddiscriminator!)

def testme(x,y):
  if x == None:
    return y
  else:
    return x

As you can see you can pass more than one field value into your function, in your case the value from the very field you are updating.