SC09 - Mathematical Operations

Whether you want to increment a counter in a loop or replace your calculator with an AE Script solution, mathematical functions and operators are among the basics of every programming language. Now that you are familiar with data types and a few loops, this part of the learning path will teach you more about calculating with AE Script.

ℹ️ This Automic Course is part of PEM Automic and was published on July 9th 2025.

📋 Content: 2 lessons and 1 final test

🕒 Duration: Depending on your experience as a designer, around 30 to 45 minutes.

Mathematical operations with AE Script – Calculations made easy! 🧮⚡

In AE Script, you not only have to edit strings, but also work with numbers. Whether calculations, random numbers, or binary operations—in this course, you will learn the most important mathematical functions of AE Script and how to use them properly.

What can you expect from this course?

  • Basic arithmetic with AE Script: addition (ADD), subtraction (SUB), multiplication (MULT), division (DIV), and modulo (MOD).
  • Efficient calculations: use AE Script functions or common operators for your automations.
  • Modulo for conditions and loops: Check whether numbers are divisible without a remainder – great for recurring tasks!
  • Generate random numbers: Use RANDOM to generate values for tests or dynamic scripts.
  • Understand bit operations: Read individual bits from the binary representation of numbers with GET_BIT.

Why is it important to know?

  • Clean calculations & automation: Error-free and efficient mathematical operations save time.
  • Practical applications: Use modulo for loop control.
  • No nasty surprises: AE Script understands point-before-line arithmetic and brackets, but not implicit multiplication or compound operators (+=, ++).

Whether you want to do simple calculations or dive deeper into random numbers and bit masks, this course will help you make your scripts more efficient and flexible!

 

Learn Automic with PEM!

Would you like to learn more about Automic without having to travel across the country for workshops? At PEM, you decide when and how you want to continue your education! In interactive courses, tutorials and videos, you will learn everything you need to know about Automic – and more! And we are always there for you via comment function or email.

Does that sound interesting? Then get started today with PEM, Automic Training 2.0 and year-round Automic support!

More about PEM
Start now

FAQ about Automic Training on PEM

PEM is the most innovative and fastest growing Automic learning platform. It offers PEM members a comprehensive range of online training courses that can be accessed 24/7 and from anywhere. The platform includes dozens of videos and interactive courses and is aimed at beginners and professionals alike.