Build A Caesar Cipher Step 22

Create an if statement that checks if encrypt is not truthy. Within the new if statement, set shift to - shift. This is necessary to enable the shift to take place in the opposite direction with respect to the encryption process.

Unsure what this step means as there is no example given and I believe I am covering all aspects of what it’s asking, below code that I’m using:

if not encrypt:
shift = -shift

Hi. Please can you link to the url of the step you are on.

if you are adding exactly that, remember what is the role of indentation in Python

hey, im having the same problem as him, what is the answer? The code im using is: if encrypt != True:
shift=-shift

the URL of the step is :https://www.freecodecamp.org/learn/full-stack-developer/workshop-caesar-cipher/step-22

Hi @samuel062708

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Happy coding