1.

Solve : help with IF Array?

Answer»

using an if array , how can i MAKE SOMETHING similar to this work? i want line 1 , to goto line 3 , and line 2 to goto line 4

:4PZ889Q
IF "%e.1%"=="D" (
IF "%e.1%"=="A"
Goto R99
Goto R98
)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

Quote


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!


Discussion

No Comment Found