[Resolved] Requiring 2 Inputs for If Variable

Describe the issue/error/question

I have 2 SSH’s running commands to return versions for the current running docker instance of N8N, and the downloaded image, but I can’t port 2 variables into an IF unit

What is the error message (if any)?

None, it just gives 1 stdout instead of 2, even when using a merge node, or an && in the SSH, it will still just return both outputs in 1 output

Please share the workflow


## Share the output returned by the last node
<!-- If you need help with transforming the data, please also share the expected output -->


Output on the Left (Input of IF Variable)

Expected Output: stdout1: 0.219.1
                             stdout2: 0.220.0

Or something of the sort

## Information on your n8n setup
- **n8n version:*0.219.1*
- **Database you're using (default: SQLite):*Whatever Comes with Docker Install*
- **Running n8n with the execution process [own(default), main]:*Execute button?*
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:*Docker*

I figured this out

If I push the data to a ‘SET’ module with 2 variables, I then can change the “IF” inputs to an expression, and pull from thew new ‘SET’ variables, “newVersion” and “currentVersion”, compare them, and then return a result

The same sort of setup is required for the ‘SET’ module

1 Like

That is handy, I was about to try and work out what went wrong with the formatting of the post to see what we can do :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.