Quantcast
Channel: PTC Community : All Content - Programming & Extending Mathcad
Viewing all articles
Browse latest Browse all 680

Simple program - wrong return value

$
0
0

This is a problem I stumbled upon writing a more complex routine (http://communities.ptc.com/message/197514#197514) and was able to cut down to the attached simple programs.

Can anybody explain whats wrong with Test2()?

Why is the else branch ("otherwise") not evaluated when the first "if" is triggered??

Inserting that dummy line as in Test1() "solves" that problem, but whats the reason for this?

ProgramOutputTest.png


Viewing all articles
Browse latest Browse all 680


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>