When computer code encounters the word if what does it do

Iterates
Checks if the condition is true or false
Follows a sequence
Repeats the instructions

The computer code checks if the condition following the word "if" is true or false. If the condition is true, it executes the instructions inside the "if" statement. If the condition is false, it skips the instructions inside the "if" statement and continues with the rest of the code.