Show me Your ways, O LORD; teach me Your paths.  Lead me in Your truth and teach me, for You are the God of my salvation; on You I wait all the day.  (Psalm 25:4-5, NKJV, emphasis added) 

We can ask for the path and do so in waiting on God with great hope(continued).

Thus says the LORD: Stand in the ways and see, and ask for the old paths, where the good way is, then you will find rest for your souls.  (Jeremiah 6:16, NKJV) 

If you abide in Me, and My works abide in you, you will ask what you desire, and it shall be done for you.  By this My Father is glorified, that you bear much fruit; so you will be My disciples.  (John 15:7-8, NKJV, emphasis added) 

The second condition of asking and receiving what you ask for is to be abiding in Christ.  Read John 15 and learn what Christ has to teach about abiding in Him.  A person who waits on God abides in Christ, not in himself.  Our source of everything good is Christ; abiding in Christ keeps us in His will and upon His path.

You did not choose Me but I chose you, and appointed youthat you would bear fruit, and that your fruit would remain, sothat whatever youask of the Father in My nameHe may give to you.  (John 15:16, NASB, emphasis added) 

Here is a bonus Scripture with the first and second conditions reemphasized:

If any of you lacks wisdom, let him ask of God, who gives to all liberally and without reproach, and it will be given to him. (James 1:5, NKJV, emphasis added).

The third condition is that if you ask for wisdom it will be given to you.  This is easy for the person who is waiting on God because he understands his condition and knows he lacks wisdom.  Ask for wisdom. 

You lust and you do not have.  You murder and covet and cannot obtain.  You fight and war.  Yet you do not receive because you ask amiss, that you may spend it on your pleasures.  (James 4:2-3, NKJV 

The fourth condition of asking and receiving is not asking for a selfish reason.  Once more, the person who waits on God and is developing Christian character understands that his will is contrary and beneath the will of God and will seek only those things that are according to the will and glory of his Lord.

And whatever we ask we receive from Him, because we keep His commandments and do those things pleasing in His sight.  (1 John 3:22, NKJV, emphasis added)

The fifth condition to asking and receiving is that we must be obedient to His commands and do what pleases Him.  We learn what His commands are and what pleases Him through the study of His Word (2 Timothy 2:15).  If we have to ask “which ones” we limit the Word of God.  He has meant for you to be obedient in all things.

No this is the confidence that we have in Him, that if we ask anything according to His will, He hears us.  And if we know that He hears us, whatever we ask, we know that we have the petitions that we have asked of Him.  (1 John 5:14-15, NKJV)

The sixth condition is that we ask according to His will.  We have been studying determining the will of God through waiting on Him.  Realize that in order to know the will of someone you need to know that person intimately.  The better you know somebody the better you can discern that person’s will.  The person who is waiting on God realizes that his personal will is unimportant, and does what he can to get into the position of knowing the only will that is important – the will of the Lord.

Incorporate the six conditions of asking and receiving in your prayer life today by waiting on God with great hope will result in knowing His will for you.