07.
The wonderful if Statements
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
6 Comments
Helpful tip:
It is now considered best practice to use the '===' operator unless you have specific reason to use the '==' operator.
Google that and Yoda Conditions if you want to develop good habits that follow Official Symfony Best Practices from the start. Yoda Conditions help you catch an accidental assignment operator (=) on what should of been a comparison operator (=== or ==)
Hey PlayIt,
Thanks for tip! You're totally right here. Actually, this is beginner course, so we left more complicated things for further lessons.
Cheers!
Hello,
I tried to rewrite code from challenge 3 to make it work.
But for some reason 'Website' think that "Frisbee" is "Tennis ball" and echo 'color' "Yellow" although it schould echo 'color' "surprise".
Hey Daniel,
It might be so that your challenge instance stopped working correctly and so stopped saving your code to the server. Could you try again, please? The system will create a new challenge instance for you. Let us know if you still have this problem.
Cheers!
Unfortunately it still doesn't work, probably there is some error, it's not very important, because I have code something else and that worked, so I'm fine.
Thanks for replie.
Hey Daniel,
Glad to hear you were able to solve that challenge finally. We have "Answer" button below the challenge that will show you the correct code - you can always check that code with your :)
Cheers!
"Houston: no signs of life"
Start the conversation!