@ Anusien
I know nothing about programming so I don't quite follow what you are saying. My truth tables are based in propositional logic.
Perhaps if I elaborate it will make a bit more sense:
What can you infer about the hand in question from the following if-then statement?
If there is a king in the hand, then there is an ace, or else if there isn't a king in the hand, then there is an ace
Now, keep in mind that I have both my initial answer (in my first post) and my revised answer (second post), based upon a different interpretations of the sentence, which I think is semantically ambiguous (think Time Vault! yay!)
My first reason for the second interpretation has to do with Diceman's prefatory remark.
In logic a statement is a sentence that is either true or false. It is the basic building block of logic. Sentences sometimes contain multiple statements. For example:
"I went to the shore and I ate lunch." That's two separate statements:
1) I went to the shore
2) I ate lunch
Diceman specifically states that the "following" is an "if-then" "statement". That's why I said to Rich that if the "Or" was a disjunctive wedge that effectively created TWO "If...then" statements, then he was either sloppy or wrong in describing the following as an "If...then statement." He should have said:
The following "sentence" or the following "statements" (note the plural).
The second key piece is the phrasing and the use of the comma.
If there is a king in the hand, then there is an ace, or else if there isn't a king in the hand, then there is an ace
If this sentence was intended to contain two "If...then" statements, then it should read:
"If there is a King in hand, then there is an Ace; if there isn't a king in hand, then there is an ace." Or something along those lines.
A third reason for interpreting the sentence that way is that if it were merely two Conditional statements, then the answer would be VERY easy. My first answer in the thread shows this.
But i think the trick is ignoring the
meaning of the sentence and focus on the structure/logic of the sentence.
Let's focus on the sentence again.
If there is a king in the hand, then there is an ace, or else if there isn't a king in the hand, then there is an ace
So, we can symbolize the following:
K = King in hand
A = Ace in hand
From there, propositional logic can fill in the rest of the meanings
So it says:
If K, then A, or else not K, then A.
So the two possible interpretations are:
(K-->A) v (-K--> A)
Or
K--> (A v (-K-->A))
As I told Rich, I thought that this is a case semantic ambiguity, which means that the sentence can be interpreted in more than one way.