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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Function does not work with adding if statement

hgholizadeh
1-Newbie

Function does not work with adding if statement


Hi everybody:

I have got a problem with MathCad. When I define a function without If statement, everything is fine. However, as you can see from attached MathCad file, with adding if statement in my function, an error appers that "this value must be scalar"

Any idea why this happens. I have attached the file.

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Hossein Gholizadeh wrote:


Hi everybody:

I have got a problem with MathCad. When I define a function without If statement, everything is fine. However, as you can see from attached MathCad file, with adding if statement in my function, an error appers that "this value must be scalar"

Any idea why this happens. I have attached the file.

See image below

Stuart

View solution in original post

3 REPLIES 3

Hossein Gholizadeh wrote:


Hi everybody:

I have got a problem with MathCad. When I define a function without If statement, everything is fine. However, as you can see from attached MathCad file, with adding if statement in my function, an error appers that "this value must be scalar"

Any idea why this happens. I have attached the file.

See image below

Stuart

Thank you so much. It works now

Hossein Gholizadeh wrote:

Thank you so much. It works now

No problem.

Stuart

Top Tags