Mathcad Prime: Ignore Units in Text Statement
- January 3, 2020
- 1 reply
- 4139 views
I am trying to create a conditional program, that returns a value if the input is within a data set, but an error if the input value is outside the bounds of the data set. Unfortunately, the return value is in a non-default unit (psi*ms). Thus, if I just set the formula to show the default result, the displayed units are not what I want. However, if I go in and set the units to my desire value in the result, the display will then "crash" if it tries to return the error message.
Is there a way to get mathcad to "ignore" the units if it is returning text?
The worksheet in question is very busy, so I have isolated an example of the idea in the attached sheet.
Basically, I want Impulse(6) to return a value in psi-ms, but Impulse(2) to return the error message.
Is there any way to get Mathcad Prime to do this?
Thanks in advance,

