April 2026
461 pages
17h 56m
English
As already mentioned, a program code consists of a sequence of statements. This doesn’t mean that the same sequence should always be executed, but rather that what is to be done is interactively dependent on input from a person or a machine, on calculations, or on measured values. To achieve this, tools for process control are needed, namely the control structures.
One of the most important control structures is the if statement, which first queries a condition that returns a Boolean value, namely the already known True or False, and then executes the corresponding additional statements, as shown in Listing A.7.
# Example of the if statement ...
Read now
Unlock full access