I've encountered this recently and I just can't wrap my head around it. My book states that
$$A \rightarrow B \equiv \neg A \lor B$$
It's my understanding that $A \rightarrow B$ means that if $A$ is true, then $B$ is true.
But, $\neg A \lor B$ would allow for us to have that $\neg A$ is true and $B$ is true, which seems to be pretty much that exact opposite of $A \rightarrow B$, so how can these be equivalent?
"A only if B" means that you can't have A without B, i.e. $\neg(A\wedge(\neg B))$, which simplifies (via de Morgan) to $(\neg A)\vee B$.