Skip to main content
4-Participant
January 24, 2016
Question

Prime AND statements & Otherwise statements

  • January 24, 2016
  • 2 replies
  • 3992 views

I've been using MathCAD 15 for some years now with no real issues however since I started using MathCAD Prime 3.0 I've been having trouble getting accustomed to the programming aspect.

Some functions that I've become accustomed to have seemingly disappeared or I can't locate them.

For example, I understand how to return some text if A > B.

What I want to do is return some text for A >B AND C < D and if those aren't satisfied, return some other text. In MCAD 15 I'd just type:

"Success" if A>B ^ C<D

"Failure" otherwise

"Success" if E>F ^ G<H

"Failure" otherwise

(^ is the boolean logic for AND)

But in the new Prime, I'm not too sure as I don't know how to account for the general otherwise statement.

Can anyone help me out here ?

2 replies

24-Ruby IV
January 24, 2016
24-Ruby IV
January 24, 2016

Better - in Mathcad 15, Mathcad Prime and Mathcad Express:

NovaStark4-ParticipantAuthor
4-Participant
January 24, 2016

Thanks,

It works now.

Didn't know that the second logic statement existed!

Thanks again.

24-Ruby IV
January 25, 2016