Execution-less scripts

From Fancade Wiki

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 the two input numbers are equal and 0 otherwise:
  • Output 1 if X is greater than Y and 0 otherwise:
The less-than operation is obtained by replacing the left Max block to Min.
  • Output A if input is 0 and B if input is 1:
Same script, but with Vectors: