Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: help with IF Array  (Read 2141 times)

0 Members and 1 Guest are viewing this topic.

diablo416

    Topic Starter


    Hopeful
    help with IF Array
    « on: February 17, 2008, 10:51:31 AM »
    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
    )

    Dias de verano

    • Guest
    Re: help with IF Array
    « Reply #1 on: February 17, 2008, 01:16:13 PM »
    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!