Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

Need some help with IF statement

$
0
0

Hello,

 

For a Mathcad calculation I am trying to make use of an IF statement in Mathcad 15. At the top of the sheet I ask the user of the sheet whether they want calculation "A" or "B" through a List Box Control. I have set name "A" to correspond with value "0", and name "B" to correspond with value "1". This value is then stored as follows:

Snip1.png

Then further down in the Mathcad sheet, I want to make an IF program that calculates a function in one of two ways, depending on the value of Storage. I tried to make it like this, but that did not work:

Snip2.png

Does any of you have tips for me on how to do this? I know that what I am currently doing makes no sense in Mathcad language, but I think it best illustrates my problem.

 

Thanks in advance!

Tim


Viewing all articles
Browse latest Browse all 2936

Trending Articles



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