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

6-Contributor

## IF & AND statements logic

Having a problem getting the following to work, I think it's really just logic, as trying to use to determine which one equation from 4 should be being used!

1 ACCEPTED SOLUTION

Accepted Solutions
19-Tanzanite
(To:SA_9950729)

If you don't define and function, and(M, N) is a graphics function. Therefore use "and" operator that I show the second line and the if function operate.

4 REPLIES 4
19-Tanzanite
(To:SA_9950729)

If you don't define and function, and(M, N) is a graphics function. Therefore use "and" operator that I show the second line and the if function operate.

6-Contributor
(To:ttokoro)

@ttokoro many thanks, don't fully appreciate what you have explained, but understand it's application 🙂

23-Emerald II
(To:SA_9950729)

@SA_9950729 wrote:

Having a problem getting the following to work, I think it's really just logic, as trying to use to determine which one equation from 4 should be being used!

ttokoro's way is the correct way to address the problem; that is, using the boolean operator ∧ from the Math ribbon's Operator tab, in the Comparsion goup.

An alternative (having done all the hard work in writing and functions!) and one that I use for other booleans, is to define function's and, or, xor, etc to use as seems fit.

I've often found it necessary, not just convenient, to use these functions when I need to pass one or the other as an argument to a function.

You can't do that with an operator.

The attached worksheet was created in Mathcad Express 7, but the concept should work in almost any version of Mathcad.

Stuart

6-Contributor
(To:StuartBruff)

thanks for your feedback & input, appreciated..

Announcements