Overview of Conditionals and Puppet Language are provided in this module of puppet training.

If Else

Case

Selectors

More Conditionals and Logic