If’ usually introduces conditional clauses. The same applies to other conditionals such as unless, should and in case which, however, perform other functions in different contexts.
Although there are quite a few different ways of forming conditional sentences there are common patterns known as zero, first, second and third conditionals. Refer to an imagined past result of ...