Java Expression doesn't output correctly

Describe the problem/error/question

Following the Level 2 Course, when I enter the javascript expression in the Convert2CSV Node for Workflow 3 {{$runIndex > 0 ? 'file_low_orders':'file_high_orders'}} It doesn’t return any File Name for the following Discord Node…

I don’t know Javascript enough. I tried changing the ? but I couldn’t find a suitable alternative.

What is the error message (if any)?

There is no Error, but it doesn’t correctly send the right message to Discord.

Information on your n8n setup

  • n8n version: 1.65.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via Docker, npm
  • Operating system: Debian 12 Linux

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @PsB,

Welcome to the community :raised_hands:

Can you share the workflow you currently have an more information on what the error is? Looking at your expression I don’t see any issue so I suspect it is something in the workflow.

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


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