Compile if node in custom node to imperative language if-else