I will praise you with an upright heart, when I learn your righteous rules.
“shall have learned(KJV)” But praising You is not something that does not happen until the process is completed. No, my heart begins to be transformed into a state of righteousness as the Holy Spirit begins His work in applying Your Word. Being in a state of learning brings about a state of praise.