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!

Hiding equations in mathcad 2

Status
Not open for further replies.

HTCivil

Structural
Sep 16, 2008
16
Say I have two equations. One equation is used if x > y. The other is used if x <= y. If for some situation x > y, I only want the function associated with that condition to show up on my printout. I know I can simply drag the equation I want onto the printed portion and take out the equation I don't want, but I would prefer to not have to do that, especially since it might not be me who uses the program.

I'd like to be able to write some kind of conditional statement that will decide which equation to "show" and which to "hide", so the the program will automatically make visible the equation associated with x > y, and make invisible the equation associated with x <= y. It's a matter of having available the equations for all situations, but having the printout show only those equations that are relavent to a specific situation, without requiring the user to have to drag anything around.

I've searched a number of help files and forums but can't find anything that does this. Any tips would be much appreciated.

-HT
 
Replies continue below

Recommended for you

I don't know of an elegant way to do it on the fly. What I do in that situation is display the x and y values and then do an if statement. Anyone who can read the calculation, can determine which is greater and which equation I used.

David
 
You could put the equations in a collapsed area, then use a text box to show the proper equation. The text box script could be edited to display text representing the correct equation (it wouldn't actually be the equation but could look like it).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor