What are the benefits of using the Conditional operator (?) over a traditional if/else statement or similar?
Using ? seems to lower readability in some cases but anything else?
Richy321 0 Light Poster
Recommended Answers
Jump to PostIn my book it's just another option. Once you get used to seeing the ? operator it isn't really that problematic. Most often its the fancy operators/conditions within the conditions that make it confuscated for me at least.
All 4 Replies
Lerner 582 Nearly a Posting Maven
Alex Edwards 321 Posting Shark
ddanbe 2,724 Professional Procrastinator Featured Poster
Richy321 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.