Execution-less scripts: Difference between revisions
(Created the page) |
No edit summary |
||
Line 1: | Line 1: | ||
Some scripts require {{Port|e|Execution wires}} to function. | Some scripts require {{Port|e|Execution wires}} to function. | ||
However you may need to avoid using them where possible, to avoid having unnecessary connections | However you may need to avoid using them where possible, to avoid having unnecessary connections. | ||
This is useful when making custom [[Script Block]]s. | This is useful when making custom [[Script Block]]s. | ||
Latest revision as of 17:10, 17 July 2024
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: