Dir was unexpected in Batch


Hello, I have this line of code:
if %Monitor%==No if %Sub%==Yes dir /b /s "%Fol...
Tags: batch, cmd, batchcode, help