Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAbbot Carder
1,334 PointsCode Challenge php if statement with icecream
I am not understanding how you want me to the conditional on this code challenge. I have the setting the variable but now sure how to do the second part of the challenge.
Abbot Carder
1,334 PointsNevermind I got it...but thank you!
2 Answers
Stone Preston
42,016 Pointshere is a hint: You need to check whether or not your variable is equal to a static string (Randy's favorite flavor)
if ($flavor == "something")
Abbot Carder
1,334 Pointsyup I had that just had stuff in the wrong place. Thanks again Stone
Stone Preston
42,016 Pointsglad you got it figured out
Stone Preston
42,016 PointsStone Preston
42,016 Pointsplease post the code you have tried so far