Custom Node with multiple boolean outputs

Hello to everyone!

I’m trying to create a custom node within multiple outpust exactly as IF node.
It’is possibile?

This node get data/time as input parameter and return true if the office is opened and false otherwise.
I have already created this feature, it works! But return only one output.

How can make a node with two outpust?

Thank for the support

Welcome to the community @Diego_Iorio!

Yes, that is possible. You can simply check out the If-Node here:
https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/If.node.ts

The important thing is that you define the output like this:

  outputs: ['main', 'main'],

And that you return the data for both outputs.

Thank you a lot @jan ! :slight_smile: