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
Color[]
Color
Gradient[]
Gradient
Graphic[]
Graphic
Raster[]
Raster
String[]
String
Transform[]
Transform
Vec2[]
Vec2
Vector[]
Vector
bool[]
bool
f32[]
f32
f64[]
f64
u32[]
u32
u64[]
u64
If False

Exposed to the Graph by Default

Artboard[]
Artboard
Color[]
Color
Gradient[]
Gradient
Graphic[]
Graphic
Raster[]
Raster
String[]
String
Transform[]
Transform
Vec2[]
Vec2
Vector[]
Vector
bool[]
bool
f32[]
f32
f64[]
f64
u32[]
u32
u64[]
u64

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

String
String[]
bool
bool[]
f32
f32[]
f64
f64[]
u32
u32[]
u64
u64[]
Vec2
Vec2[]
Transform
Transform[]
Vector
Vector[]
Graphic
Graphic[]
Raster
Raster[]
Color
Color[]
Gradient
Gradient[]
Artboard
Artboard[]
String[][]
bool[][]
f32[][]
f64[][]
u32[][]
u64[][]
Vec2[][]
Transform[][]
Vector[][]
Graphic[][]
Raster[][]
Color[][]
Gradient[][]
Artboard[][]