Lori is writing the code for her video game using PlayCanvas. She is creating a set of if statements that check for six different

variables. What type of conditional statement is Lori using?
(1 point)

switch statement

if/else statement

causal statement

if statement

if statement

Lori is using an if statement.

Lori is using an if/else statement.

To determine the type of conditional statement Lori is using, we can look at the description given: "she is creating a set of if statements that check for six different variables." This indicates that the code involves multiple if statements, which suggests an if/else statement.

An if/else statement allows Lori to check multiple conditions and perform different actions based on the outcome of each condition. It starts with an if statement to check the first condition, and if it evaluates to true, the corresponding code block will be executed. If the first condition is false, the code will move to the else block and execute the code within it.