A game about forced loneliness, made by TACStudios
1# Boolean Node
2
3## Description
4
5Defines a constant **Boolean** value in the [Shader Graph](index.md), although internally to the shader this is treated as a constant **float** value that is ether 0 or 1, similar to Shaderlab's [Toggle](https://docs.unity3d.com/ScriptReference/MaterialPropertyDrawer.html) property. Can be converted to a **Boolean** type [Property](Property-Types.md) via the [Node's](Node.md) context menu.
6
7## Ports
8
9| Name | Direction | Type | Binding | Description |
10|:------------ |:-------------|:-----|:---|:---|
11| Out | Output | Boolean | None | Output value |
12
13## Controls
14
15| Name | Type | Options | Description |
16|:------------ |:-------------|:-----|:---|
17| | Toggle | | Defines the output value. |
18
19## Generated Code Example
20
21The following example code represents one possible outcome of this node.
22
23```
24float _Boolean = 1;
25```