Mathcad 15 - Return a Value from a Solve Block if a Solution is Not Found
I am working on a calculation sheet to design a bridge deck overhang. The last check I need to do is to calculate the cutoff length of the supplemental bars that are used. In order to do this, you need to solve/find the location where the applied moments become less than the moment resistance of the overhang without the supplemental bars. The only way I can think to achieve this is to use a solve block, however, this becomes a problem if/when the applied moments are less than moment resistance at the cutoff location. See the images below.

For this example the variable Mr_co is the moment resistance at the cut-off location. I have set up functions to calculate the ultimate strength moments for 2 different cases. As you can see by the graph, the ultimate strength moment for the one case does not quite reach the cut-off moment resistance. I would like to set up the solve block so that if/when this happens, the return is 0, but I am not sure if this is possible because when the solve block cannot find a solution, it returns a "variable is undefined" error.

I have tried putting this in an if statement block, but the issues seems to be that the return of the Find function when it cannot find a solution. Has anyone else run into this issue and found a solution around it? I have also tried using the 'on error' operator and that does not work either.
Any help would be much appreciated! Thank you!


