I have the following snippet
setlocal EnableExtensions EnableDelayedExpansion
SET copyableTomcat="C:\test\source"
SET tomcatNode[2]="C:\test\source"
set x=2
IF %copyableTomcat% == %%tomcatNode[%x%]%% (
call echo "ignoring " %%tomcatNode[%x%]%%
) ELSE (
call echo "done"
)
However, the if statment is NEVER matching, and always goes into the else statement.
I am unsure if i am mistypying something or missing something completely