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 trialArthur Berg
11,350 PointsWhat does || mean? Don't even understand how to write it on a mac keyboard and I can't find the answer on google.. Help
I'm getting the question || means .....? After Part 3 on Important Stuff in the MASH course. They don't explain this information in the video and I can't find the answer online. I don't even know how to write these symbols on my mac keyboard. Please help. Thanks for a great service!
1 Answer
Dale Bailey
20,269 PointsIt means "or", you can write logic like.
if (color = red OR color = amber) {stop} else if (color = green) {go}
To write it on a mac its shift and backslash, just left of the enter key. ||||||||||||||||