The reason why would a programmer use the logical operator or in an if statement is When an action is to be taken that requires both conditions to be true.
A logical operator can be regarded as a symbol or word that us utilized in connecting two or more expressions.
However, When an action is to be taken that requires both conditions to be true, a the logical operator can be used.
Learn more about logical operator at;
https://brainly.com/question/24833629