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

[REBOL] Re: New line

From: al:bri:xtra at: 13-Aug-2001 16:17

John wrote:
> 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 " " ]
Here's what I get with your first solution:
>> a: "aaaa"
== "aaaa"
>> b: 4
== 4
>> either b > 2 [ print "Product 1 Spice Pouch " print a print " Quantity "
[ print b print "^/" ] [ print " " ] Product 1 Spice Pouch aaaa Quantity 4
>>
Note the extra newline after the line containing the "4". If you need to print an extra newline, here's two solutions:
>> print "^/" >> print newline
Here's a solution to what I think you want: either b > 2 [ print ["Product 1 Spice Pouch" a "Quantity" b] ][ print "" ] And here is what it produces: Product 1 Spice Pouch aaaa Quantity 4 I hope that helps! Andrew Martin ICQ: 26227169 http://zen.scripterz.org