code: function (bool, valueIfTrue, valueIfFalse) {
          return bool ? (valueIfTrue == undefined ? '' : valueIfTrue) : (valueIfFalse == undefined ? '' : valueIfFalse);
      }
docs: ternary switch statement (also converts undefined values to blank string automatically)