+0
If I cook the best one then you'll be invited.
+0

The grammar is OK, but I can't say whether the meaning is what you intend.

CJ

+0

It seems a very unusual thing to say. It sounds as if a group of people will all cook the same dish, then the dishes will be compared, and then only if yours is the best will you invite someone somewhere. I doubt you actually mean this, but I can't tell what you do mean.

(Cross-posted.)