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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

If "blank greater than blank" and "blank greater than blank"

dsweet
2-Explorer

If "blank greater than blank" and "blank greater than blank"

I have a question regarding if statements. I am trying to program the following:

If x>y "and" x>z, then x=c.

Can anyone help me with this? I was thinking an "also if" statement would work, but I don't think I'm entering it right. Does "also if" only return the value if either expression is true?

Thanks in advance for any help!

Dustin

ACCEPTED SOLUTION

Accepted Solutions
Fred_Kohlhepp
23-Emerald I
(To:dsweet)

Ther is a boolean "and" operator that allows you to combine the two comparisons.

View solution in original post

2 REPLIES 2
dsweet
2-Explorer
(To:dsweet)

Correction, what I'm trying to do is

if c>y "and" c>x, then z=c.

Thanks!

Fred_Kohlhepp
23-Emerald I
(To:dsweet)

Ther is a boolean "and" operator that allows you to combine the two comparisons.

Announcements

Top Tags