cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

A programming question: assign a value to a variable

jrodriguez-9
5-Regular Member

A programming question: assign a value to a variable


Hi I want to let lambda be = 1 if normal or 0.75 lightweight. how can I prepare a simple input like this so when I do a calc I specify either normal or lightweight . can any one tell me what is the best way to put this? thanks

4 REPLIES 4
jrodriguez-9
5-Regular Member
(To:jrodriguez-9)

Q7.png

jrodriguez-9
5-Regular Member
(To:jrodriguez-9)

This does not work. I am trying to see how I can best represent this. Any ideas? please share. Thank you.

I'm afraid I haven't got Prime, so I've answered in Mathcad 15 - simply substitute your elseif for the otherwise (noting that you don't have a result for when neither condition is true).

Stuart

Do you have another variable in your sheet that clarifies if your concrete is normal or lightweight?

If so, you can do something like this:

If not, I'd just make a text comment:

Top Tags