The text I am reading gives this problem:
Express the following using logic symbols.
The cat is out of the bag only when the contestant is bald.
$D$ is: The cat is out of the bag, and $P$ is: The contestant is bald, thus $D$ only when $P$.
I thought of "only when" as similar to "only if" and answered $D \iff P$. The text gives the answer as $D \implies P$.
That then is:
If the cat is out of the bag, then the contestant is bald, and I can not see that "if-then" has the same meaning as "only when".
As an absolute amateur at this, and assuming that the text is not in error, I have to look here for guidance. The logic text I am reading makes it very clear that connections do not imply causality or sequence in time. "Only when" does not imply a sequence, but does seem to separate the times when the contestant is bald and when, another, contestant is not. Please excuse me if I am not making sense about this.
How do I interpret "only when"?