used for introducing a situation that may happen or may be real, especially when talking about its results if you want/like:
You can come and stay with us if you want.
if necessary/if possible (=if it is necessary/possible):
We are ready to fight for our rights if necessary.
Synonyms and related words