Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Aug 25, 2003
Messages
6
Location
US
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
 
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

Back
Top