This is sort of a general programming question. However, realizing that the IF conditional is used in many languages, keep in mind I primarily use PHP.
And in PHP, if statements look like:
if(some comparison is true) {code to process;}
"if" in this case is laid out like a function:
function function_name(arguments) {code to run;}
except that the code does not rely on if the arguments are TRUE or not. It just runs when you "call" it.
So is "if" really a sort of function? Just trying to think outside of the proverbial box here.