It is very difficult to predict the order in which Gentran executes mapping instructions based on conditions. The best way to approach this is to put the conditions in the extended mapper window, both for the non-null value and conditions expected and another for the null value with the conditions expected. It involves extra mapping instructions, but there really is not another way.