Mathcad Prime - Writing an if else program to evaluate each row in a table
- June 25, 2021
- 3 replies
- 2982 views
Hello Everyone.
Ive not got much experience in Mathcad so hoping you can help me with a simple program I have been trying to write. Basically I have set up a table, with two columns "a" and "b" and what I was looking to do was write a program that evaluates an if/else statement for each row. If a is greater than 2 then carry out a+b if a is not greater than 2 then carry out a-b.
At the moment I can get it to work for the first part however when I add in the else statement it looks to me like a single row complying with the else statement means that this is applied to every single row rather than just the individual row.
Is it possible to have this program evaluating each row independently of each other?
I've attached my file and a screenshot of the sheet as well.
If you guys need more information please let me know. Also I am no expert so if there are better ways of doing this, anything I have done that I shouldnt etc. please let me know.
Thank you.


