Chapter 4. Looping
In the previous chapter, we discussed the if
statement. The if
statement enables you to put a condition on the execution of a block of code.
In this chapter, we will explore loops, which are code structures that enable you to repeat a block of code under certain conditions. We stop repeating that block of code once the condition becomes false.
In this chapter, we will explore the following topics:
- While loops
- Do/while loops
- For loops
- A simple example of a practical loop within Unreal Engine