This commit is contained in:
Riskey
2025-10-11 11:43:18 +08:00
parent c13c061be3
commit c785efaf69
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ title: "Code"
The Code node allows you to embed custom Python or JavaScript scripts into your workflow to manipulate variables in ways that built-in nodes cannot achieve. It can simplify your workflow and is suitable for scenarios such as arithmetic operations, JSON transformations, text processing, and more.
To use variables from other nodes in the Code node, define the variable names in `input variables` and reference these variables in the code.
To use variables from other nodes in a Code node, you must select them in the `Input Variables` field and then reference them in your code.
<img
src="https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/9969aa1bc1912aebe366f5d8f5dde296.png"

View File

@@ -7,7 +7,7 @@ version: '日本語'
コードードを使用すると、カスタムのPythonまたはJavascriptスクリプトをワークフローに埋め込み、組み込みードでは実現できない方法で変数を操作できます。コードードは、算術、JSON変換、テキスト処理などのシナリオに適しており、ワークフローを簡素化できます。
コードノードで他のノードの変数を使用するには、`入力変数`で変数名を定義し、コード内でこれらの変数を参照する必要があります。
コードノードで他のノードの変数を使用するには、まず`入力変数`でその変数を選択してから、コード内で参照する必要があります。
<img
src="https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/9969aa1bc1912aebe366f5d8f5dde296.png"

View File

@@ -6,7 +6,7 @@ title: "代码执行"
通过代码节点,你可以在工作流中嵌入自定义的 Python 或 Javascript 脚本,以内置节点无法实现的方式对变量进行操作。代码节点能够简化你的工作流,适用于 Arithmetic、JSON transform、文本处理等场景。
若要在代码节点中使用其他节点的变量,需在`输入变量`中定义变量名,并在代码中引用这些变量
若要在代码节点中使用其他节点的变量,需在`输入变量`中选择变量,然后在代码中进行引用
<img
src="https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/9969aa1bc1912aebe366f5d8f5dde296.png"