First: Please take more time to turn your posts into something legible. Grammar, spelling, the whole deal. We're not in the Call Of Duty chat.
Second: "SET_FUEL_TRANSFER_AFT" does not work in FSX. Control the fuel selector instead.
Third: Apart from the missing spaces for the condition, the instruction in the "if" condition is not in a valid format.
And besides, since you want to fix fuel imbalances, you need to account for all cases.
Code:
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) <
if{ (A:FUEL TANK SELECTOR:1,enum) 3 != if{ (>K:FUEL_SELECTOR_RIGHT) } }
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) >
if{ (A:FUEL TANK SELECTOR:1,enum) 2 != if{ (>K:FUEL_SELECTOR_LEFT) } }
(A:FUEL LEFT QUANTITY,Gallons) (A:FUEL RIGHT QUANTITY,Gallons) ==
if{ (A:FUEL TANK SELECTOR:1,enum) 1 != if{ (>K:FUEL_SELECTOR_ALL) } }