Skip to content

Commit

Permalink
add syntax to code node
Browse files Browse the repository at this point in the history
  • Loading branch information
StarfallProjects committed Oct 16, 2023
1 parent 567eb1a commit a53d7f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _snippets/integrations/builtin/core-nodes/code-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ The Code node supports:

If you self-host n8n, you can import and use built-in and external npm modules in the Code node. To learn how to enable external modules, refer the [Configuration](/hosting/configuration/#use-built-in-and-external-modules-in-the-code-node) guide.

### Built-in methods and variables

n8n provides built-in methods and variables for working with data and accessing n8n data. Refer to [Built-in methods and variables](/code/builtin/) for more information.

The syntax to use the built-in methods and variables is `$variableName` or `$methodName()`. Type `$` in the Code node or expressions editor to see a list of suggested methods and variables.


## Python

Expand All @@ -37,6 +43,12 @@ n8n added Python support in version 1.0. It doesn't include a Python executable.
!!! note "Slower than JavaScript"
The Code node takes longer to process Python than JavaScript. This is due to the additional compilation steps.

### Built-in methods and variables

n8n provides built-in methods and variables for working with data and accessing n8n data. Refer to [Built-in methods and variables](/code/builtin/) for more information.

The syntax to use the built-in methods and variables is `_variableName` or `_methodName()`. Type `_` in the Code node to see a list of suggested methods and variables.

## File system and HTTP requests

You can't access the file system or make HTTP requests. Use the following nodes instead:
Expand Down

0 comments on commit a53d7f7

Please sign in to comment.