rwierda

Saving Expession Corupts Expression?

Discussion created by rwierda on May 10, 2011
I have created a calculation to check if the FID is odd or even.  When I type the expession it works fine.  but if I save it as a .cal file I get an invalid character error.  are there invisible characters added when saving an expession.  here is the calculation I am working with

def check(number):
    if number%2==0:
        return 0
    else:
        return 1

=
check( !FID!)

Outcomes