Skip to main content
1-Visitor
February 5, 2011
Solved

Piecewise Function

  • February 5, 2011
  • 2 replies
  • 3986 views

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

Best answer by StuartBruff

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

2 replies

19-Tanzanite
February 5, 2011

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

23-Emerald V
February 5, 2011

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

Valyence1-VisitorAuthor
1-Visitor
February 5, 2011

Yes. Thank you that was exactly what i needed.