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 trialBrendan Whiting
Front End Web Development Techdegree Graduate 84,738 Points"...we didn't see the phrase "Wow, that's a lot of elves!" Try again!"
Stumped again... (I also tried num_elf.count, and tried few different html tags just in case that was it)
{{ num_elf }} el{{ num_elf|pluralize:"f,ves" }}
{% if num_elf|length > 5 %}
<p>Wow, that's a lot of elves!</p>
{% endif %}
Bummer! We tried setting "num_elf" higher than 5 and loading the page, but we didn't see the phrase "Wow, that's a lot of elves!" Try again!
[MOD: added ```jinja markdown formatting -cf]
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsYou can compare the value directly:
{% if num_elf > 5 %}
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsBrendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsUgh. It's so obvious. What's wrong with me lately.