用于条件句时, be going to表将来;be going will表意愿。
例句:
If you are going to make a journey, you'd better get ready for it as soon as possible.
Now if you will take off your clothes, we will fit the new clothes on you in front of the mirror.