Hello i have the following query structure :

=Sum((Round(If (<Compensation Type>="F") Then (<Original Currency Gross Amt>+ <Discount>+<Original Ccy Commission Amount>+<Orig Ccy Brokerage Net Amt> )*0.055 -0.5*( <Discount>+<Original Ccy Commission Amount>+<Orig Ccy Brokerage Net Amt>) Else -0.5*(<Discount>+<Original Ccy Commission Amount>+<Orig Ccy Brokerage Net Amt>) ,2)))

and i want to extend it by adding the following logic;

(IF) (<Orig Ccy Brokerage Gross Amt>) Original Currency Gross is Positive (THEN) Invoice calculation amount should be (=) positive. (IF)( <Invoice calc>) invoice calculation value is negative apply (=-(field value)*-1) to make the value positive.
OR
(IF) (<Orig Ccy Brokerage Net Amt>) Original Currency Net Brokerage is Negative (THEN) Invoice Calculation amount should be (=) negative. (IF)( <Invoice calc>) invoice calculation value is positive apply (=(field value)*-1) to make the value negative.

The problem I am having is how to represent positive and negative in the formula, its not !=>0, i have tried this and It does not work.

can anyone help?