Skip to main content
Best answer by Werner_E

The comparison of sigma.c and sigma.t returns either 0 (false) or 1 (true) which of course can't be compared to 485 MPa.

You have to write it that way

Werner_E_0-1678969185330.png

BTW, you don't have to write the parentheses but I usually add them in such expressions for clarity

But you may also simply write

Werner_E_1-1678969276273.png

You may also consider using the if-function instead of the programmed if-statement

Werner_E_0-1678970013795.png

And here is yet another way to achieve the same result

Werner_E_1-1678970039760.png

 

 

2 replies

DJNewman
18-Opal
March 16, 2023

Because the (σc V σt) boolean comparison returns a 0 or 1 depending on if it's true or not, and that's a unitless thing that won't be compatible with MPa.

 

You'll want to do if (σc > σmin V σt > σmin) instead.

PTC Marketer for Creo and Mathcad. I run their YouTube channels, some Creo campaigns, and all Mathcad campaigns and communications.
Werner_E25-Diamond IAnswer
25-Diamond I
March 16, 2023

The comparison of sigma.c and sigma.t returns either 0 (false) or 1 (true) which of course can't be compared to 485 MPa.

You have to write it that way

Werner_E_0-1678969185330.png

BTW, you don't have to write the parentheses but I usually add them in such expressions for clarity

But you may also simply write

Werner_E_1-1678969276273.png

You may also consider using the if-function instead of the programmed if-statement

Werner_E_0-1678970013795.png

And here is yet another way to achieve the same result

Werner_E_1-1678970039760.png

 

 

8-Gravel
March 16, 2023

Thanks.