Populate field with max value from other fields in same table

Discussion created by don_johnson on May 11, 2011
Latest reply on May 11, 2011 by don_johnson
I am new to Python and v. 10.  I need to populate a type double field (NUM) based on the following criteria:

If field1 is equal to field2 then NUM is same value
If field1 is greater than field2 then NUM value is field1
If field1 is less than field2 then NUM value is field2

Thank you