To have a plan, purpose, or aim in your mind when you do something.
From Latin 'intendere' meaning 'to stretch toward, direct', from 'in-' (toward) + 'tendere' (to stretch). The idea of stretching toward a goal became the mental sense of having a purpose.
Try Another Word