MagiCats
Wiki home
Numbers / Basic

Math

Calculates with two numbers.

Current editor blockBlock ID 58MathPlus
Math code block in the MagiCats editor

What it does

Returns the result. Division by zero returns 0.

Inputs

  • Left number.
  • Operator: +, -, x, or divide.
  • Right number.

Try it

Set Variable Score to Score + 1.

Tips

  • Small formulas make variables feel powerful without getting scary.

Sources

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