By comparing values using conditions such as if/else statements which is basically, if its not one thing its the other, and switch cases which is essentially a multi option version of an if else statement allowing for multiple options within the statement to have a true or false value.