Execution-less scripts
Some scripts require Execution wires to function. However you may need to avoid using them where possible, to avoid having unnecessary connections. This is useful when making custom Script Blocks.
This article will not cover trivial scripts, and will focus on making scripts that would normally be done using If or other scripts that use execution wires. In some, but not all cases, such scripts will also be faster than their counterparts.
Examples
- Output 1 if X is greater than Y and 0 otherwise:
- Output A if input is 0 and B if input is 1:
- Same script, but with Vectors: