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 trialKent Drummond
8,309 Pointsno clue
I know how to start it but thats about it.
2 Answers
melissaorgill
Front End Web Development Techdegree Student 11,136 PointsYou just need to add in a elsif statement before the else
car_speed = 55
speed_limit = 55
if car_speed < speed_limit
too_fast = false
elsif car_speed=speed_limit
going_speed_limit=true
else
too_fast = true
end
Angela Visnesky
20,927 PointsHi Kent, Your are adding another conditional statement to your "if". For this challenge, you add an "elsif" between the "if" and "else" to see if the car_speed == speed_limit and setting going_speed_limit = true.
if car_speed < speed_limit
too_fast = false
elsif car_speed == speed_limit
going_speed_limit = true
else
too_fast = true
end
I hope this helps!