Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Ternary Usage
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Greg Willits, post: 4578834"] The ternary operator is not used very often, Ruby offers a different Ah, OK. Strange structure. (rhetorical Q:) Why read through all the do_stuff if it isn't going to matter by the time you get the IF? I guess I'll switch to that if it is more customary. OK, thanks for confirming that. Sure, name makes sense, but so does allowing a form w/o the ELSE (which is what I am accustomed to doing). Tried that early on and still got errors, but after experimenting more I see now its beacuse I only tried that in a few places rather than in all ternaries in the script. Once I did it for all, the script worked. Indeed. Thanks much. -- gw [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Ternary Usage
Top