In the last section, we introduced the idea of assigning truth values to statements. This idea is unproblematic for statements that do not contain variables, since such statements are either true or false. But if a statement contains variables, we can no longer describe the statement as being simply true or false. Its truth value might depend on the values of the variables involved. For example, if P(x) stands for the statement “x is a prime number,” then P(x) would be true if x = 23, but false if x = 22. To deal with this complication, we will define truth sets for statements containing variables.
This question might seem pretty basic but forgive my ignorance. When I was being taught truth sets it sounded like we use them to deal with predicates that have variables because we can't simply say they are true or false since it depends on the variable, which can change and therefore affect the validity of the statement. How exactly do truth sets help with this? don't I still need to know what the variable is to determine if the statement is true or false?