1 verses of the American Standard Version have both "if" and "wealth".
Job 31:25 If I have rejoiced because my wealth was great, And because my hand had gotten much;
In other translations: KJV WEB YLT Darby Webster Geneva