When does a doc put you on clomid?

An

hey guys. Is Clomid usually perscribed when your blood test results show you are not ovulating?

What is the require for this to be prescribed and do you take it everyday of your cycle?