SC05 - Loops with WHILE

Loops in AE Script are achieved with WHILE. In this new course of the Scripting learning path, we will look at the syntax, the use cases and the pitfalls when working with WHILE. As always with exciting exercises and a final quiz!

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

📋 Content: 2 lessons and 1 final test

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

In this course, you will learn how the WHILE statement works in AE-Script. It enables code blocks to be executed repeatedly as long as a specified condition is met.

The course shows you:

  • What WHILE syntax looks like and what you need to pay attention to in order to avoid infinite loops.

  • Practical applications, such as working with date functions (e.g. ADD_DAYS and SUB_DAYS) or creating dynamic Unix scripts.

  • What happens if a condition is not changed correctly and how to correct such errors.

You will also gain insights into script logic, how counters are used in loops, and learn how to combine WHILE with other functions to solve complex tasks.

In addition to theory, the course contains practical examples that you can try out yourself. These include a “random” calculator that counts loop runs and an experiment to calculate the average value of several random number - loops. These exercises will help you to apply and consolidate what you have learned.

The course is perfect for beginners looking to understand WHILE loops and gain their first practical experience. Use the examples and tips to make your own automations more efficient!

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
Get in touch

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.