Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Prime AND statements & Otherwise statements

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-23-2016
10:19 PM

01-23-2016
10:19 PM

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 ?

Labels:

4 REPLIES 4

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-24-2016
12:15 AM

01-24-2016
12:15 AM

Re: Prime AND statements & Otherwise statements

See please the fig. 6 here

http://twt.mpei.ac.ru/ochkov/Mathcad_14/MathcadWorkSheetAsFlowChartEng.pdf

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-24-2016
02:44 AM

01-24-2016
02:44 AM

Re: Prime AND statements & Otherwise statements

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-24-2016
12:19 PM

01-24-2016
12:19 PM

Re: Prime AND statements & Otherwise statements

Thanks,

It works now.

Didn't know that the second logic statement existed!

Thanks again.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

01-25-2016
03:49 AM

01-25-2016
03:49 AM

Re: Prime AND statements & Otherwise statements

Top Tags