Logical decision

Updated: 11/12/2023 by Computer Hope
Two people using logic to decide.

In computing, logic or a logical decision refers to a conclusion or choice made by a computer program based on predefined conditions or rules set by a programmer. These decisions are often determined through logical operations, such as comparisons, and are essential for controlling the steps a program follows.

With program logic, suppose you have a program that checks if a number is greater than 10. Then, a logical decision might be to take one action if the condition is true (greater than 10) and another action if it's false (less than or equal to 10).

Algorithm, Artificial intelligence, Artificial intelligence terms, Boolean, If statement, Instruction, Logical, Logic error, Program, Programming in logic, Shared logic, Software terms