MagiCats
Wiki home
Conditions / Basic

And / Or

Combines two conditions.

Current editor blockBlock ID 57MathAnd
And / Or code block in the MagiCats editor

What it does

Returns true when both are true for and, or when at least one is true for or.

Inputs

  • First condition.
  • Dropdown: and or or.
  • Second condition.

Try it

If See Player and Distance < 5, Fireball.

Tips

  • Use And for stricter traps and Or for more forgiving triggers.

Sources

Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/BlockManager.cs