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 the Community Ranking System, a fun gamification element of the PTC Community. X

Piecewise Function

Valyence
1-Newbie

Piecewise Function

Can someone tell me how to create a piecewise function and the syntax that is involved. I have searched all of the help directory and can't figure out how they are creating the function (I cant replicate the syntax). I want to use an if statement.

Something like the image attached is what i am trying to replicate.

Thanks

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald II
(To:Valyence)

matthew brister wrote:

Can someone tell me how to create a piecewise function and the syntax that is involved. I have searched all of the help directory and can't figure out how they are creating the function (I cant replicate the syntax). I want to use an if statement.

Something like the image attached is what i am trying to replicate.

Does the attached file help, Matt?

Stuart

View solution in original post

3 REPLIES 3
RichardJ
19-Tanzanite
(To:Valyence)

In the help contents go to the chapter on programming, and specifically conditional operators.

StuartBruff
23-Emerald II
(To:Valyence)

matthew brister wrote:

Can someone tell me how to create a piecewise function and the syntax that is involved. I have searched all of the help directory and can't figure out how they are creating the function (I cant replicate the syntax). I want to use an if statement.

Something like the image attached is what i am trying to replicate.

Does the attached file help, Matt?

Stuart

Yes. Thank you that was exactly what i needed.

Top Tags