what is the difference between if and provided?
Depends on the context. Generally these are the same concept, but 'provided that' is a bit more formal or business-like than just 'if'. Also, 'provided' does not always need or want to be followed by 'that'.