Executes a function if the Boolean value is true.
The Boolean value itself.
The function to execute if the Boolean value is true. Defaults to an empty function.