Can you please show us exactly what you are using/typing? Unless we see the exactly syntax you are using for your example, we cannot possibly duplicate it, nor really explain it. The best we'll be able to do is take shots in the dark until one of us hits on a way to solve your particular problem - an iffy way to arrive at a satisfactory solution.
  • Try double-quoting your filename.

    var %filename = " $+ filenameOrVariable $+ "
    var %filename = $+(",filenameOrVariable,")
  • $crc(%filename) will return 00000000 if the file doesn't exists, which is $false in an if condition.
  • $exists(%filename) should works fine.
  • $file(%filename) should work fine.
  • $findfile($nofile(%directory),$nopath(%filename),1) should work fine.
  • $lines(%filename) should work fine.
  • $isfile(%filename) should work fine.
  • $longfn(%filename) should work fine.
  • $nopath(%filename) should work fine.
  • $read(%filename) should work fine.
  • $shortfn(%filename) should work fine.
Off the top of my head, I'd say it most likely has to do with how you're setting your variable but I wouldn't necessarily bet on it without a lot more information.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C