Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
As part of my coursework, I have to calculate the self-inductance of a single turn coil.
We have been provided with a set of nested equations to estimate the value, which have been presented in mathcad format.
However, when I tried to type in the equation, I got an error telling me the final "otherwise" statement needs to be matched with an "if" statement.
Could someone please point me in the right direction?
Solved! Go to Solution.
At you function "otherwise" is used not correctly (not for all expression, but only for the last item).
Greg, most likely you did not use the "otherwise" from the programming palet
At you function "otherwise" is used not correctly (not for all expression, but only for the last item).
Thanks. I didn't realise that I added the "otherwise" in the wrong order.
You're welcome.
I use in same cases if-function:
That is an interesting suggestion. I was unaware that you could nest if statements like that.
Greg Milway wrote:
That is an interesting suggestion. I was unaware that you could nest if statements like that.
Thanks. But I think the best solution is - see the picture:
I agree
Mike