rconsole.js
function formatIf (bool, format, arr, ref) {
  if (bool) {
    arr.unshift(format)
    return util.format.apply({}, arr)
  }
  else
    return ref
}
function formatIf (bool, format, arr, ref) {
  if (bool) {
    arr.unshift(format)
    return util.format.apply({}, arr)
  }
  else
    return ref
}
function formatIf ( bool , format , arr , ref ) { if ( bool ) { arr . unshift ( format ) return util . format . apply ( { } , arr ) } else return ref }
if bool is true then format
if bool is true then format