Control Flow in Twig

In this course we will learn the fundamentals of control flow in Twig. We’ll learn what’s available to us to more carefully control how and when content is outputted in our Twig templates. Control Flow is how we tell our program (or in our case templates) when and under which circumstances to process our statements. In Twig these statements could be including a new template, setting a variable, running macro, or using a Twig output tag to output something to the screen.

Ryan Irelan

I am the creator of CraftQuest, a web developer, and former software team manager. I spend most of my time improving CraftQuest with code and courses. When I'm not in front of the computer, I spend my time with my family, and running on the roads and trails of Austin, TX.

Control Flow in Twig is made up of the following videos: