Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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
Solved! Go to Solution.
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
In the help contents go to the chapter on programming, and specifically conditional operators.
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.