One of the perspectives I found useful when learning if statements, is to think of it as:
first check the condition and then branch into different possibilities based on this condition. Each branch implies a unique sequence of instructions for a given choice of parameters
SomeFunction(parameters)
execute instructions A
if condition X is true
execute instructions Y
else
execute instructions Z
execute instructions B