Boolean expression: Difference between revisions

Content deleted Content added
A Hexagon (talk | contribs)
also known as '''logical expression'''
m Reverted edits by 60.48.39.68 (talk) (AV)
 
(3 intermediate revisions by 3 users not shown)
Line 1:
{{Short description|Expression in a computer program}}
[[fa: عملگرهای بولی]]
In [[computer science]], a '''Boolean expression''' (also known as '''logical expression''') is an [[Expression (programming)|expression]] used in [[programming language]]s that produces a [[Boolean value]] when evaluated. A Boolean value is either '''true''' or '''false'''. A Boolean expression may be composed of a combination of the Boolean constants '''True/False''' or '''Yes/No''', [[Boolean data type|Boolean-typed]] variables, Boolean-valued operators, and [[Boolean-valued function]]s.<ref>{{citation
| last1 = Gries | first1 = David | author1-link = David Gries
Line 13 ⟶ 12:
| year = 1993}}.</ref>
 
Boolean expressions correspond to [[propositional formula]]s in logic and are aassociated [[special case]] ofto [[Boolean circuit]]s.<ref>{{citation
| last = van Melkebeek | first = Dieter
| isbn = 9783540414926