ABOUT newline

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
QI
Posts: 39
Joined: Sat Aug 05, 2006 4:25 am

ABOUT newline

Post by QI »

hello every body, now i have a problem , if some commad is so long that i can't complet the command by one line script,and how should i define a newline in a single command?
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

use the "literal" character: \

set a [expr 3.*5. + \
7./3.]
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
QI
Posts: 39
Joined: Sat Aug 05, 2006 4:25 am

Post by QI »

Thank you!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

use a \ to break the line into shorter lines
Post Reply