# Activity 4 - Conditions

Very well!

We are getting closer and closer to making our secret messages. But let’s also not forget that we have to be able to decipher these messages!

For that, we are going to enter in the console a 1, if we want to encrypt a message, or the number 2, if we want to decrypt it.

For this we will need conditions.

For the activity, we are going to use a condition to know if what we want is to create a secret message (encrypt it) or uncover a message (decrypt it).

For that, we must follow the following steps:

1. Create a variable of type int.
2. Request input from the user, and store the inputted data into the variable of type int.
3. Create an if/else condition to check if the number inputted is equal to 1. If so, then we want to encrypt the message; otherwise, we want to decrypt the message.
4. Print to console in each case what we wish to do. For example, if 1 is inputted, then print out "Encrypt a message". Otherwise, print "Decrypt a message".

If you need help, remember that you can go back to the previous activities and review.