- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Of course, like any ternary expression that returns a boolean, both an be rewritten using just boolean logic. Simplified:
I could leave out the starting ternaries of the first one because there are only two true outcomes.
Similarly, I could leave out most of the ternaries for the second one because there is only one true outcome. Everything after that true results in false. I'm guessing that there should be a true in there somewhere.
Edit Admin
Wtf.Visible = false == Me.IsFrist ? false : true
Addendum 2026-01-28 08:33: Although in today's case the WTF is all too visible.
Admin
TRWTF is not handling FileNotFound