Two Way Switch
VEX node
Takes an integer input.
This operator takes an integer input. If this input value satisfies the Condition parameter, the output is set equal to the first input value. If the integer input does not satisfy the Condition parameter, the output is set equal to the second input value. This provides a simple way to switch between two values and simulate an if-then-else construct.
Usages in other examples
| Example name | Example for | |
|---|---|---|
| Fire Pit example |
Material shader |
|
| Down Hill Lava Flow |
Material shader |
|
| FurBallWorkflow |
Fur surface node |
|
| FurTextureMap |
Fur surface node |
|
| InstanceRandomGeo |
Instance particle node |
|
| RampReference | ||
| RestField |
Smoke Object dynamics node |
|
| grass | ||
| StickyDonut |
Sticky object |
|
| RivetWaveform |
Rivet object |