lundi 17 octobre 2016

IRC String comparison is always true

I'm trying to simply compare a line in a text file to today's date. The line I want help with always seems to evaluate true for my code. Any examples?

My code:

set %lines $lines(test.txt)
set %date $adate

while (%i <= %lines)
  set %read $read(test.txt, n, %i)

  if( %date isin %read ){  ; <-- Line in question
    do things
  }
}

Aucun commentaire:

Enregistrer un commentaire