> For the complete documentation index, see [llms.txt](https://flowtestai.gitbook.io/flowtestai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flowtestai.gitbook.io/flowtestai/flow-nodes/set-variable-node.md).

# Set Variable Node

This node is used to create a GLOBAL variable and assign it a value.

The value assigned can be of type -&#x20;

* **Select** - Selects a part of the output from the previous node. For instance previous node is request node that outputs `{ "id": 10, "category" : [ {"id" : 10, "status" : "available"} ], .....}` , then you can use `id` or `category.0.id` to assign value to the variable. The actual values will be calculated on the fly when the graph is run.
* **String** - Assigns a value of type string to the variable. &#x20;
* **Number** - Assigns a value of type number to the variable.&#x20;
* **Boolean** - Assigns a value of type boolean to the variable. &#x20;
* **Now** - Assigns a value of type now() epoch timestamp to the variable. The value of now() is calculated on the fly during graph run. &#x20;
* **Expression** - You can compute an expression on the fly to assign value to this variable. For instance , create a variable `startTime` that is assigned `now() - 3minutes`

<figure><img src="https://4117604482-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5kRbYlQgU50zpBM3y5aL%2Fuploads%2FCmWzY0277mBwhLeCm9LQ%2FScreenshot%202024-04-17%20at%2010.06.20%E2%80%AFPM.png?alt=media&amp;token=8b293845-3791-436f-aa56-77f5281f97fe" alt="" width="375"><figcaption></figcaption></figure>
