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 trial

PHP Build a Simple PHP Application Creating the Menu and Footer Variables and Conditionals

Code 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.

Stone Preston
Stone Preston
42,016 Points

please post the code you have tried so far

Nevermind I got it...but thank you!

2 Answers

Stone Preston
Stone Preston
42,016 Points

here 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")

yup I had that just had stuff in the wrong place. Thanks again Stone

Stone Preston
Stone Preston
42,016 Points

glad you got it figured out