How can I use the ternary ? : condition to perform multiple operations, if expression is true/false?
? :
wbsource = (exp) ? (Do one thing) : (Do secon
If you really, really want to, you could use a function which has side effects:
filename = (fp!=null) ? DoOneThing(...) : DoAnotherThing(...);
Though whoever maintains your code won't thank you.