When the word if begins a sentence what is the part of speech?

it depends what word it is it could be any part of speech depending on the sentence