utahcon Posted October 3, 2006 Share Posted October 3, 2006 what does this mean? var w = (variable && variable2) > 0)?varaible3:variable4,v=w.split("&") Link to comment Share on other sites More sharing options...
reportingsjr Posted October 3, 2006 Share Posted October 3, 2006 its another way of writing this: if(variable > "0" && variable2 > "0"){varaible3;}else{variable4;v = w.split("&");} but yours is kind of bugged. the "?" is like the first { and the ":" is the same as "}else{" then the end of the line is "}" . Link to comment Share on other sites More sharing options...
aspnetguy Posted October 4, 2006 Share Posted October 4, 2006 var x = (some condition) ? if true assign this value : else assign this value Link to comment Share on other sites More sharing options...
jhecht Posted October 6, 2006 Share Posted October 6, 2006 Its a quicker way to do an IF/ELSE statement that is not too complex. Link to comment Share on other sites More sharing options...
Chocolate570 Posted October 6, 2006 Share Posted October 6, 2006 Ok guys, 3 answers to the same question is enough. Don't post on this topic unless the starter wants to ask another question. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now