Switch

Evaluates either the "If True" or "If False" input branch based on whether the input condition is true or false.

Interface

Inputs

ParameterDetailsPossible Types
Condition

Primary Input

Bool[]
Bool
If True

Exposed to the Graph by Default

Artboard[]
Artboard
Bool[]
Bool
Color[]
Color
Gradient[]
Gradient
Graphic[]
Graphic
Integer[]
Integer
Number[]
Number
Raster[]
Raster
String[]
String
Transform[]
Transform
Vec2[]
Vec2
Vector[]
Vector
If False

Exposed to the Graph by Default

Artboard[]
Artboard
Bool[]
Bool
Color[]
Color
Gradient[]
Gradient
Graphic[]
Graphic
Integer[]
Integer
Number[]
Number
Raster[]
Raster
String[]
String
Transform[]
Transform
Vec2[]
Vec2
Vector[]
Vector

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

String
String[]
Bool
Bool[]
Number
Number[]
Integer
Integer[]
Vec2
Vec2[]
Transform
Transform[]
Vector
Vector[]
Graphic
Graphic[]
Raster
Raster[]
Color
Color[]
Gradient
Gradient[]
Artboard
Artboard[]
String[][]
Bool[][]
Number[][]
Integer[][]
Vec2[][]
Transform[][]
Vector[][]
Graphic[][]
Raster[][]
Color[][]
Gradient[][]
Artboard[][]