XGBoost scoring in "if .... then" format

Instead of using predict_proba() or predict() in xgboost, I would like to get the the logics in “IF… THEN…” format to calculate the predicted probability, Just wondering if there is a way to do this ?

Try dump_model() to get a human readable dump.