Two answers: see the Jess (format) command for one possibility. 
Second, note that to produce a String in Jess that contains a newline,
simply embed the newline in the String:

(bind ?message "Hello!
My name is...")

Although of course this is not acceptable Java syntax, it's OK in Jess
(the manual does indeed mention this.) Jess doesn't support any of the
Java String escape characters.

I think [EMAIL PROTECTED] wrote:
> Hi!
> I use Jess for an Italian Manufacturing Group and I'd like to know
> how to print some characters into a string, such as "space", CR
> (carriage return), LF (line feed) and so on.
> If I wanto to print:
> 
> "Hello!
> My name is Paolo       Goodbye!" 
> 
> using the following program code:
> 
> (bind ?message "Hello! My name is Paolo Goodbye!")
> 
> then I pass ?message in Java in a code like this:
> 
> System.out.println(?message).
> 
> My problem is: how characters I have to put in the string after
> ?message when I write
> 
> (bind ?message "Hello! My name is Paolo Goodbye!")
> 
> to print the CRLF (carriage return and line feed) or SPACE
> to write down the message I wrote above between "" ?
> 
> Thank you
> 
> Bye!
> 
> Paolo Pancini
> [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to