Applies a given code block if a given condition is met
The condition that should be met
The code block to execute