How to compare 2 strings in batch RRS feed

  • Question

  • I have this code

    for /l %%a in (0, 1, 25) do (
    if /i !TextAlphabet!==!Alphabet[%%a]! (
    set AlphabetNumber=%%a



    !Alphabet[]! is an array containing alphabets

    I tried echoing !TextAlphabet! and !Alphabet[%%a]! and when they are the same, %AlphabetNumber% is still the value I set before the loop

    I tried checking for white spacesin my variables but found none

    Saturday, February 22, 2014 5:56 AM