I have never used Mathcad 15, but from the syntax, I would say this file does it.
Nothing difficult here, the "if" is just not a function anymore, and has been replaced by something more "program-looking". I assume, to make it easier to put several instructions in an if statement.
the "if" is just not a function anymore, and has been replaced by something more "program-looking".
We have both in good old Mathcad as well as in Prime the choice between the if-Function and the programmed if-statement. So you could as well duplicate the syntax given in the picture.
The advantage of the function in Prime is that it also works in the express version while programming doesn't
Good to know ! I tried to type it as a function once and it didn't work. Must have gotten the syntax wrong, but didn't try very hard and used the programmed one instead. I'll remember that for future use