Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

if statements text

Status
Not open for further replies.

zsmith

Structural
Aug 25, 2003
6
Curious, there is the "if statement and if function" options, but can you have MathCAD output text messages from an if statement much like Excel does?
eg If x > 1 then design is sufficient
x < 1 then design is deficient
 
Replies continue below

Recommended for you

Depending on which version you have; in V11 and at least a couple of older versions, you can do this:

if(x>1,&quot;Great!&quot;,&quot;Bummer!&quot;)

TTFN
 
You can also do things like

v1:=&quot;Great&quot;
v2:=&quot;Bummer&quot;
if(x>1,v1,v2)



Bung
Life is non-linear...
 
Thanks gentleman, but i dont see how it gives the output its more like a definition. I would like to hide the actual &quot;if statement&quot; and only have the conclusion.
 
One way to hide the statements is:
- Go to &quot;Insert&quot;/&quot;Area&quot;
- Write inside the if statements.
- Double click in one of the the arrow to hide the text and statements.
 
Another way is to put the statements off to the right beyond the printable area.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor