Controls / Basic
If
Runs inside blocks only when a condition is true.
Current editor blockBlock ID 32If

What it does
Checks the condition and skips the inside blocks when false.
Inputs
- Condition block.
- Blocks snapped inside.
Try it
If Player can be seen, Attack.
Tips
- This is the most important smart-trap block.
Sources
Legacy pages reviewed: If
Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/BlockManager.cs