Pre-Logic Script Code: def myFunction(input1, input2): Input1 = int(input1) Input2 = int(input2) # do Calculation... i.e. # x = 2*Input1 + 3*Input2 # return the result of the calculation - this value is placed in the new field... return x Expression: myFunction(!input1!, !input2!)