OR vs AND Logic Debate

Cluster centers on debates over whether a condition in an article or example uses logical 'OR' (inclusive or exclusive/XOR) or 'AND', with discussions on programming operators like ||, &&, precedences, and natural language ambiguities.

πŸ“‰ Falling 0.4x Programming Languages
2,290
Comments
20
Years Active
5
Top Authors
#1388
Topic ID

Activity Over Time

2007
4
2008
9
2009
33
2010
60
2011
57
2012
80
2013
133
2014
75
2015
77
2016
147
2017
128
2018
131
2019
165
2020
231
2021
198
2022
185
2023
242
2024
180
2025
145
2026
10

Keywords

e.g OR AST CLI PLUS LISP i.e AND I.E FSM operators boolean condition true foo operator false true false binary operation

Sample Comments

nodata β€’ Nov 25, 2013 β€’ View on HN

Yeah LG, cut the newsspeak: it's not an OR, it's an AND.

ghufran_syed β€’ Mar 22, 2022 β€’ View on HN

Mathematically that should be "OR", not "AND"

namirez β€’ Jul 13, 2023 β€’ View on HN

Because it’s an β€œor” rather than an β€œxor”.

anonymars β€’ Oct 10, 2025 β€’ View on HN

You seem to be assuming those are "or" rather than "and"

Retric β€’ Jun 13, 2021 β€’ View on HN

AND is not OR, but I understand your confusion.

erik_seaberg β€’ Nov 5, 2022 β€’ View on HN

You definitely want x || y, x ^^ y, and x implies y.

alexpetralia β€’ Feb 2, 2021 β€’ View on HN

It's not an exclusive-or (exactly one is true), but rather an inclusive-or (at least one is true, potentially both).

mikorym β€’ Jul 31, 2018 β€’ View on HN

By "or", do you mean that both options are true?

garmaine β€’ Jul 30, 2019 β€’ View on HN

You are asking for both A&B and !(A&B)?

andrewaylett β€’ Nov 17, 2013 β€’ View on HN

I'm fairly sure that's an 'and', not an 'or', per your reference [0].