I’ve just started using n8n today for a first workflow.
I have run into some problems with the UI, particularly around accessing and using the values that are passed along the flow.
I have an “execute command” node which runs a command line node script. I want to use the exit code from that script to pass on to an IF node.
The command executes, and I get a returnCode of 0.
But in the subsequent IF node, I can’t for the life of me work out how to get the if statement to evaluate that zero (is it a string? Is it a number?) and return true.
I’ve tried equality by number, string and by boolean. None of these evaluate as “true” for the input being zero.
I realise this looks very “I’m a beginner” - I must be doing something very basic that’s wrong here. Can anyone help?