Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Returning true when parsing a blank line

From: arolls:bigpond:au at: 6-Feb-2001 16:17

This prints true/false at the beginning of each line, indicating whether this line had nothing (none) in it. x: read/lines %file.txt foreach line x [print [parse line [none] line]] Do you want to combine other parse rules with the 'none possibility? Otherwise you can test using [empty? line] or [line = ""]