   Whats the syntax
  Trying to turn char func(int someOtherVar, bool b){  switch(someOtherVar)  {    case someCase:    if(b) return ''!'';    else return ''1'';    break;    //....  }}intochar func(int someOtherVar, bool b){  switch(someOtherVar)  {    case someCase: b ? return ''!''; : return ''1''; // cant figure it out    break;    //....  }}ive tried brackets all over the statement, i just cant get it.Can it be done? if so can someone give me working syntax so i can see if maybe i have a different problem, or im over lokking something. 
  return can''t be put into a ?: expression. However, you can do:switch {    case somecase:    return b ? ''!'' : ''1'';    // Note that you don''t need a break after a return statement} The official zorx website;  Now that you said that and i look at it one more time it does look kind of dumb. I was trying to shorten the page length of this very long switch and just quickly converted the if else to short hand not thinking what i was doing. Thx. 