title: Cyclomatic Compleity IF ELSE vs SWITCH CASE
body: <p>Many code analysis tools like sonar throw errors for switch case if used instead of multiple is-else for cyclomatic complexity . Is there a number which should be a threshold of when one should use if else and when one should use switch case ?
  Say if its a case of 50 , to reduce cyclomatic  complexity one should use switch case ? Would be good if you could support your answer with an example ?</p>