I think I am having one of those moments where your brain just does not function correctly.
I would like to combine the below two if then's into one statement and just for the life of me can't get it right.
A little assitance would be greatly appreciated.
Thanks
Code:
[tt]
#1
if isnull({VIEW_GP_OnHand.QTYONHND}) then {VIEW_Phy_count_NEW.phy_Total_Pcs}
else {VIEW_Phy_count_NEW.phy_Total_Pcs} - {VIEW_GP_OnHand.QTYONHND}
[/tt]
[tt]
#2
if isnull({VIEW_Phy_count_NEW.phy_Total_Pcs}) then {VIEW_GP_OnHand.QTYONHND}
else {VIEW_GP_OnHand.QTYONHND} - {VIEW_Phy_count_NEW.phy_Total_Pcs}
[/tt]