What does “undefined” means ?

means it has no value … - what is your flow?
I understand that as far as the step does not return a value, “undefined” is displayed. So it’s not a issue.
Why i am so focused on this ? because i do not figure out how to make my IF statements working …
Your expressions for the condition steps are wrong. The comparison should not be outside the {{ }}. Also you should only wrap strings in single quotes, not numbers.
It should never be:
{{expression}} == '1'
but
{{expression == 1}}
Why not use the data formatter UI if you don’t know the right syntax?

