|
-
JavaScript syntax question: conditional list element?
This is probably an easy one for you Javascript wonks...
I'm looking for a way to conditionally include or exclude a list element -- in Perl this is easy, how's it done in Javascript?
x = dosomething("yadda", (sometest() ? "yep" : ()), "blah");
So if sometest() returns TRUE then then we dosomething("yadda","yep","blah") otherwise we dosomething("yadda","blah").
Is that possible in Javascript?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks