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

[REBOL] Re: New line - #"^/" == newline, not "#^/"

From: arolls::bigpond::net::au at: 13-Aug-2001 14:09

What? Where do you want the newline? I see lots of them. :) To print a single character, the hash should come before the quoted part: type? #"^/" == char! type? "#^/" == string! In your second attempt, it appears that you are trying to print a char!, but it's not written correctly.
> I have tried the following two print commands, and cannot force a > NEW LINE > to invoke. > > What am I doing wrong? > > either b > 2 [ print "Product 1 Spice Pouch " print a print " Quantity " > print b print "^/" ] [ print " " ] > > and > > either b > 2 [ print "Product 1 Spice Pouch " print a print " Quantity " > print b print "#^/" ] [ print " " ]
should be: ... print #"^/" Is that it? You can also: print newline