Only be strong and very courageous, to observe to do according to all the law, which Moses my servant commanded you: don't turn from it to the right hand or to the left, that you may have good success wherever you go.
Now the encouragement for Joshua as God promises His presence, His power. Then as God again tells him the conditions upon which he will experience that presence and power of God.