I'm given a conditional statement
$ ~p \lor q \rightarrow r$
From what I understand, the state of $r$ is dependent on the state of $p$ and $q$. The truth table I came up with based on this is:
\begin{array}{ccc} p&q & r \\ \hline 0 & 0 & 1 \\ 0 & 1 & 1 \\ 1 & 0 & 0\\ 1 & 1 & 1\\ \end{array}
However, I used a truth table generator to check my answer, and I'm getting confusing results.
\begin{array}{ccc|c} p&q & r & \lnot p\lor q \to r\\ \hline 0 & 0 & 0 &0\\ 0 & 0 & 1 &1\\ 0 & 1 & 0& 0\\ 0 & 1 & 1& 1\\ 1 & 0 & 0 & 1\\ 1 & 0 & 1 & 1\\ 1 & 1 & 0& 0\\ 1 & 1 & 1& 1\\ \end{array}
I fail to understand how $r$ can have different states despite $p$ and $q$ remaining the same, if its conditionally dependent on them. I also don't understand where the constants on the rightmost column are being derived from. Wouldn't they be the same as $r$?
Am I just using the online truth table tools wrong?
The “$\to$” in $\sim p\lor q\to r$ does not denote a "gives", but is a logical operator, with the following truth table: $$\begin{array}{cc|c} a & b & a\to b\\ \hline 0 & 0 & 1\\ 0 & 1 & 1\\ 1 & 0 & 0\\ 1 & 1 & 1 \end{array}$$ That is, $a\to b$ is a logical statement that can be true or false. It basically says "$b$ is at least as true as $a$".
It is completely equivalent with $\sim a\lor b$.