Not quite sure what an "if array" is, (they don't exist in batch language) but I think the answer to your question is that the action to be taken as a result of an IF test immediately follows the test.
thus
IF "%e.1%"=="D" goto R99
IF "%e.1%"=="A" goto R98
I must say, in a friendly way, that you sure write cryptic, hard-to-read code!!! Ever heard of meaningful variable names? Or if you didn't write it, but have to maintain it, you have my sympathy!