mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-27 13:28:32 +07:00
updates
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -7,7 +7,7 @@ version: '日本語'
|
||||
|
||||
コードノードを使用すると、カスタムのPythonまたはJavascriptスクリプトをワークフローに埋め込み、組み込みノードでは実現できない方法で変数を操作できます。コードノードは、算術、JSON変換、テキスト処理などのシナリオに適しており、ワークフローを簡素化できます。
|
||||
|
||||
コードノードで他のノードの変数を使用するには、`入力変数`で変数名を定義し、コード内でこれらの変数を参照する必要があります。
|
||||
コードノードで他のノードの変数を使用するには、まず`入力変数`でその変数を選択してから、コード内で参照する必要があります。
|
||||
|
||||
<img
|
||||
src="https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/workflow/node/9969aa1bc1912aebe366f5d8f5dde296.png"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user