If: Difference between revisions

From Fancade Wiki
(→‎Notes: Content)
Tags: Reverted Mobile edit Mobile web edit
(Content fixes)
Tags: Reverted Mobile edit Mobile web edit
Line 16: Line 16:
== Notes ==
== Notes ==
* When no condition is attached, neither output wire will execute.
* When no condition is attached, neither output wire will execute.
You can attach any of the "Math" Scripts that is shown here to the If: "Equal Truths", "Less Than", "Greater Than", "Equal Numbers", "Equal Vectors", "Equal Objects", "AND", "OR" and "NOT."
You can attach any of the "Math" Scripts that is shown here to the If: {{Port|t|}}"Equal Truths", {{Port|n|}}"Less Than", {{Port|n|}}"Greater Than", {{Port|n|}}"Equal Numbers", {{Port|v|}}"Equal Vectors", {{Port|o|}}"Equal Objects", {{Port|t|}}"AND",{{Port|t}} "OR" and {{Port|t}}"NOT."




[[Category:Blocks]]
[[Category:Blocks]]

Revision as of 16:46, 7 September 2025

If
If.png
TypeScript block
ColliderNone
FolderControl
Ports
Inputs Before
Condition
Outputs True
False
After

Checks its Truth input and executes the corresponding output.

Example
Example

Notes

  • When no condition is attached, neither output wire will execute.

You can attach any of the "Math" Scripts that is shown here to the If: "Equal Truths", "Less Than", "Greater Than", "Equal Numbers", "Equal Vectors", "Equal Objects", "AND", Truth "OR" and Truth"NOT."