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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Reverse Variable values depending on third factor

salabhgoyal
2-Guest

Reverse Variable values depending on third factor

Hello,

 

I am new to Mathcad. I am using MATHCAD 5.0.0.0. I am trying to define a very simple function described below. Any help will be really appreciated.

 

Say x=2, y=3

 

if z=4

x=x and y=y

else 

x=y and y=x

 

I tried defining a third variable. But was not able to do it inside if statement.

 

Thanks

ACCEPTED SOLUTION

Accepted Solutions

2 REPLIES 2

Hi

Capture.PNG

LucMeekes
23-Emerald III
(To:salabhgoyal)

Something like the attached...?

 

Success!
Luc

Announcements

Top Tags