code: public static void runByBoolean(boolean bool, Runnable trueBlock,
              Runnable falseBlock) {
          if (bool)
              trueBlock.run();
          else
              falseBlock.run();
      }
docs: Run by boolean.
  
  @param bool       the bool
  @param trueBlock  the true block
  @param falseBlock the false block