I'm doing some research on conditionals and this questions bothers me. There are cases when will is ok in if-clauses, but is it ok to use "to be going to" in if-clauses?
Ngram gives some examples such as
It'll be there by seven in the morning if I'm going to leave it.
If I'm going to be less like Katherine, I'll have to work on reining in my honest opinions some.
But in general, I haven't managed to find any info about this.
I believe it's not really typical to use this construction in if-clauses, but if so, what about the examples above?