> ## Documentation Index
> Fetch the complete documentation index at: https://cobalt-55-abhishek.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Code Node

The Custom Code node in Refold enables users to execute custom functions within workflows. Users can leverage their preferred programming language to create custom logic and functionality.

## Custom Code Input Fields

To get started with Custom Code, first provide the `Input Parameters` as a key-value pair that you want to use in code and then select your preferred language.

In the Code section, the user can write their own custom code which they want to get executed within the **yourFunction**.

<img height="200" src="https://mintcdn.com/cobalt-55-abhishek/_hA6Vms9JiMZCzQC/images/Guides/Workflow/custom-node.png?fit=max&auto=format&n=_hA6Vms9JiMZCzQC&q=85&s=0b5a12394381eb46ea4e92256892691c" alt="Custom Code Node in Refold" data-path="images/Guides/Workflow/custom-node.png" />

**Define Node Rule Conditions**

Optionally, add **Node Rule Conditions** to the Custom Code node to specify conditions under which the custom code will be executed. Configure the conditions using the same approach as a Rule node, specifying **variables**, **operators**, and **values**.

<Tip>
  Learn more about Rule Node [here](/legacy/concepts/workflow/rule).
</Tip>

These conditions can be configured to `Match Any Conditions` or `Match All Conditions`, depending on the workflow requirements.
