cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Prime AND statements & Otherwise statements

Highlighted
Guest

Prime AND statements & Otherwise statements

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 ?

4 REPLIES 4

Re: Prime AND statements & Otherwise statements

Re: Prime AND statements & Otherwise statements

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

Re: Prime AND statements & Otherwise statements

Thanks,

It works now.

Didn't know that the second logic statement existed!

Thanks again.

Re: Prime AND statements & Otherwise statements