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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

if-else statements with "or" validation

AD_10841348
4-Participant

if-else statements with "or" validation

how would you do the following in Mathcad: 

 

if  (x = 1  or x = 2)

     return "yes"

else

     return "no" 

 

thank you.

ACCEPTED SOLUTION

Accepted Solutions
Cornel
19-Tanzanite
(To:AD_10841348)

2 REPLIES 2
LucMeekes
23-Emerald III
(To:AD_10841348)

exactly like you wrote it, but with "or" replaced with the OR operator. You'll find it in the operators overview, it looks like a large V.

 

Success!

Luc

Cornel
19-Tanzanite
(To:AD_10841348)

Cornel_0-1699431643669.png

 

Announcements

Top Tags