With the exception of the boolean variable, I'm wondering if it's possible to combine the bottom 2 into one statement, so s exists in the current scope
var boolean = (true or false) var s; boolean ? s = 40 : s = 80;
var boolean = (true or false), s = boolean ? 40 : 80;
That's actually the point of the ternary operator pretty much, to allow you to do what clueful just did.
duh, i feel like an idiot for not thinking of that sooner. Thanks