Just for future reference, expl3expl3 has nice switch/case statement constructs:
\prg_case_str\str_case:nnnnnF {\doctype} { {SomeString1} {some~ text~ here} {SomeString2} {some~ different~ text~ here} } {else~ clause} Variations are also provided with integers, dimensions, and token lists; e.g.,
\prg_case_int\int_case:nnnnnF{2*5}{ {5}{Small} {4+6}{Medium} {-2*10}{Negative} }{Other}