Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I would like to calculate multiple values under one if statement. Right now, the only thing I know about if statement is that I have to assign if statement to a variable and that means I can only do one variable at a time. Please see below.
For this example, if I would also like to compute some other variables other than SF under condition that d<=1/4 in, without creating another if statement, what can I do?
Thank you very much!
Edit: clarify question
Solved! Go to Solution.
@yoohooos wrote:
Thank you very much! Although, I guess this would give me multiple values for SF. I didn't mean this and sorry for not making this clear. What I meant was to compute other variables other than SF under this condition or other condition.
Ah, in that case you can just add as many lines under the one if or else statement as you like. Use Enter or Shift-Enter at the end of your "3" expression to enter a new line (can't remember which and I've only got Mathcad Express, which doesn't have programming - hence the red rectangle). The Help on the subject is fairly clear, IIRC.
Note that SF will contain a vector with the two values you want.
Cheers,
Stuart
Dear Stuart,
Thank you very much! Although, I guess this would give me multiple values for SF. I didn't mean this and sorry for not making this clear. What I meant was to compute other variables other than SF under this condition or other condition.
Sincerely,
Yoohooos
@yoohooos wrote:
Thank you very much! Although, I guess this would give me multiple values for SF. I didn't mean this and sorry for not making this clear. What I meant was to compute other variables other than SF under this condition or other condition.
Ah, in that case you can just add as many lines under the one if or else statement as you like. Use Enter or Shift-Enter at the end of your "3" expression to enter a new line (can't remember which and I've only got Mathcad Express, which doesn't have programming - hence the red rectangle). The Help on the subject is fairly clear, IIRC.
Note that SF will contain a vector with the two values you want.
Cheers,
Stuart
Then I can extract each values after that! Thank you very much!