Skip to main content
1-Visitor
August 28, 2015
Solved

Function does not work with adding if statement

  • August 28, 2015
  • 1 reply
  • 1648 views


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

Best answer by StuartBruff

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

1 reply

23-Emerald V
August 28, 2015

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

1-Visitor
August 28, 2015

Thank you so much. It works now

23-Emerald V
August 28, 2015

Hossein Gholizadeh wrote:

Thank you so much. It works now

No problem.

Stuart