I have recently learned the word ともかく, which apparently means "anyway", but searching for information on the internet, it is not very clear to me when ともかく is used and when the word とにかく, which is the one I have always used so far to say "anyway".
I am interested in learning ともかく and enriching my vocabulary a bit. Is there some kind of key that lets me know when to use one word or another?
For instance,
If (.........)
Use ともかく
else
Use とにかく
What is the condition of the "If"? Also, could you please give me an example sentence with ともかく (or some, if you please) to illustrate that?