Thanks Riamus2, that got it working perfectly.

However, I hit another wall trying to add another "rule".

Code:
alias logline {
  var %i = $findfile($logdir,#d*,0)
  if (%i = 0) { echo -a No files found. | return }
  while ( $left(%s,1) != $chr(60) ) {
    var %z = $findfile($logdir,#d*,$rand(1,%i))
    var %x = $read(%z)
    var %s = $deltok(%x,1,32)
  }
  return %s
}


What I'm trying to do is make it so that it won't return a line unless it is more than 20 letters, so that the script doesn't spit out lines that is just someone saying "lol" or "ok". In the line with the while loop, if I add a && ($len(%s) >= 20) it will just return nothing at all.

Last edited by synth7; 21/02/08 12:25 AM.