I will praise and give thanks to You with uprightness of heart when I learn [by sanctified experiences] Your righteous judgments [Your decisions against and punishments for particular lines of thought and conduct].