Hi, the following code passed the function evaluator in v5 but not v6. The report declared an error, having been migrated to 6. Then, upon loading it into the v6 report studio, I discovered that the function evaluator did not allow this.
if ((sPlant = "B") and (sBirmShip = "Y")) then let nBirmOutTheDoor = (nBirmOutTheDoor + {Packslip.Total_Weight})
The part that v6 did not like, was that nBirmOutTheDoor (global variable) was not placed into the report at the top.

I created a second header section, shadowed, and placed nBirmOutTheDoor into that section. Then, v6 was ok with it.