conjunction
if
Used to introduce a condition or an indirect question about whether something is true.
We eat outside if the weather is warm enough.
Etymology
The inherited conjunction introduces a condition. It also developed an indirect-question use, asking whether that possible condition or statement actually holds.