×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

if statements text

if statements text

if statements text

(OP)
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

RE: if statements text

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

if(x>1,"Great!","Bummer!")

TTFN

RE: if statements text

You can also do things like

v1:="Great"
v2:="Bummer"
if(x>1,v1,v2)

Bung
Life is non-linear...

RE: if statements text

(OP)
Thanks gentleman, but i dont see how it gives the output its more like a definition.  I would like to hide the actual "if statement" and only have the conclusion.

RE: if statements text

One way to hide the statements is:
 - Go to "Insert"/"Area"
 -  Write inside the if statements.
 -  Double click in one of the the arrow to hide the text and statements.

RE: if statements text

Another way is to put the statements off to the right beyond the printable area.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources