Esox

How to replace a number in a integer field by another?

Discussion created by Esox on Oct 24, 2011
Latest reply on Oct 24, 2011 by Esox
Hallo,

I ve got a short field. All "2" should be replaced by "0".

Python Code:
def replace(x):
if x is 2:
return 0


replace(!column!)

Why is it not working?

Yours,

Matthias

Outcomes