Consider just:

    if (( BLOCKS1 == BLOCKS2 ))

I believe that avoids a textual expansion.