grammar nazi's ... how do you punctuate a "logic" statement?

JDub02

Diamond Member
Sep 27, 2002
6,209
1
0
I'm reviewing a document at work. While I'm normally astute when it comes to grammar, this particular sentence structure has me a bit perplexed.

Let's say you have 3 items A, B, and C. How do you express the following in a sentence without using parentheses?

(A and B) or C
A and (B or C)


The current sentence reads "A, and B or C" and originally read "A and B or C".

I'm assuming the original intent is that this requires A and either B or C, but I will have to check with the author.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
(A and B) or C = A and B, or C
A and (B or C) = A, and B or C

That's at least how I would do it.... but I'd rather write C than English :p
 
Oct 27, 2007
17,009
5
0
Originally posted by: Crusty
(A and B) or C = A and B, or C
A and (B or C) = A, and B or C

That's at least how I would do it.... but I'd rather C than English :p

I'm no England expert but this is how I'd do it.
 

AreaCode707

Lifer
Sep 21, 2001
18,447
133
106
Originally posted by: JDub02
I'm reviewing a document at work. While I'm normally astute when it comes to grammar, this particular sentence structure has me a bit perplexed.

Let's say you have 3 items A, B, and C. How do you express the following in a sentence without using parentheses?

(A and B) or C
A and (B or C)


The current sentence reads "A, and B or C" and originally read "A and B or C".

I'm assuming the original intent is that this requires A and either B or C, but I will have to check with the author.

To perform this function, use both pieces A and B or use piece C.
To perform this function, use piece A or use both pieces B and C.
 
Oct 27, 2007
17,009
5
0
Originally posted by: AreaCode707
Originally posted by: JDub02
I'm reviewing a document at work. While I'm normally astute when it comes to grammar, this particular sentence structure has me a bit perplexed.

Let's say you have 3 items A, B, and C. How do you express the following in a sentence without using parentheses?

(A and B) or C
A and (B or C)


The current sentence reads "A, and B or C" and originally read "A and B or C".

I'm assuming the original intent is that this requires A and either B or C, but I will have to check with the author.

To perform this function, use both pieces A and B or use piece C.
To perform this function, use piece A or use both pieces B and C.

Fail.
 

esun

Platinum Member
Nov 12, 2001
2,214
0
0
Originally posted by: JDub02
I'm reviewing a document at work. While I'm normally astute when it comes to grammar, this particular sentence structure has me a bit perplexed.

Let's say you have 3 items A, B, and C. How do you express the following in a sentence without using parentheses?

(A and B) or C
A and (B or C)


The current sentence reads "A, and B or C" and originally read "A and B or C".

I'm assuming the original intent is that this requires A and either B or C, but I will have to check with the author.

Didn't you just solve your own problem?

"A and either B or C" is pretty clear for case 2.

"Both A and B or C" is not bad for case 1.
 

JDub02

Diamond Member
Sep 27, 2002
6,209
1
0
Originally posted by: esun

Didn't you just solve your own problem?

"A and either B or C" is pretty clear for case 2.

"Both A and B or C" is not bad for case 1.

I guess. I was trying to figure it out strictly using "and", "or", and comma(s).
 

Sumguy

Golden Member
Jun 2, 2007
1,409
0
0
Originally posted by: JDub02
I'm reviewing a document at work. While I'm normally astute when it comes to grammar, this particular sentence structure has me a bit perplexed.

Let's say you have 3 items A, B, and C. How do you express the following in a sentence without using parentheses?

(A and B) or C
A and (B or C)


The current sentence reads "A, and B or C" and originally read "A and B or C".

I'm assuming the original intent is that this requires A and either B or C, but I will have to check with the author.

Y=AB+C
 

AstroManLuca

Lifer
Jun 24, 2004
15,628
5
81
This is where the word "either" and the use of commas comes in handy.

(A and B) or C = Either A and B, or C.
A and (B or C) = A and either B or C. Or you could say "A in combination with either B or C."
 

CoinOperatedBoy

Golden Member
Dec 11, 2008
1,809
0
76
Originally posted by: esun
Originally posted by: JDub02
I'm reviewing a document at work. While I'm normally astute when it comes to grammar, this particular sentence structure has me a bit perplexed.

Let's say you have 3 items A, B, and C. How do you express the following in a sentence without using parentheses?

(A and B) or C
A and (B or C)


The current sentence reads "A, and B or C" and originally read "A and B or C".

I'm assuming the original intent is that this requires A and either B or C, but I will have to check with the author.

Didn't you just solve your own problem?

"A and either B or C" is pretty clear for case 2.

"Both A and B or C" is not bad for case 1.

The meaning is still not clear for the bold case 1. It could be read as having a meaning equivalent to your case 2.
 
Oct 20, 2005
10,978
44
91
Originally posted by: AstroManLuca
This is where the word "either" and the use of commas comes in handy.

(A and B) or C = Either A and B, or C.
A and (B or C) = A and either B or C. Or you could say "A in combination with either B or C."

This seems to work the best.
 

artikk

Diamond Member
Dec 24, 2004
4,172
1
71
multiplication-and
addition -or

boolean form
ab+c
a(b+c)

Sentence form
both A and B, or C
A or both B and C

Logic form
(A /\ B)\/C
A/\(B\/C)