answersLogoWhite

0

A logical statement is one that will return a boolean or a logical "True" or "False" output. It is used in cases where conditions need to be executed.

For ex: lets say you write a system that checks the age of the visitors to a bar, the system should only allow people who are over 18 yrs of age. So the logical condition will be like below:

if(age > 18) then "Let the Customer Enter"

else "The customer is a minor, send them back to stay out of trouble"

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga

Add your answer:

Earn +20 pts
Q: What is logical statement?
Write your answer...
Submit
Still have questions?
magnify glass
imp