My question is how to implement Boolean in an IF statement with YES or NO?

("Do you want to re-start? *YES*=restart(for loop?) *NO*=exit")