I want to be able to write something as
void Start(some condition that might evaluate to either true or false) {
//function will only really start if the predicate evaluates to true
}
I'd guess it must be something of the form:
void Start(Predicate predicate) {
}
How can I check inside my Start function whenever the predicate evaluated to true or false? Is my use of a predicate correct?
Thanks