Bug: The field calculators advanced prelogic code does not execute nested 'IF' statements
The field calculator returns the wrong value when nested 'IF' statements are utilized.
This is a known issue.
Perform the calculation within an Edit session. Running the code in an Edit session returns the appropriate values.