Are these two sentences grammatically correct and mean exactly the same?
If I knew he was going to come, I would have gone and met him.
If I had known he would come, I would have gone and met him.
I suggest that the first one is wrong, not because of the conditional 'if', but because of the time constraint. You would need to HAVE KNOWN in advance in order to go and meet him.