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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

if-else statements with "or" validation

AD_10841348
10-Marble

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