Skip to main content
1-Visitor
Aug 28, 2015 9:01 PM UTC
Solved

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

23-Emerald V
Aug 28, 2015 9:31 PM UTC

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

3 replies

23-Emerald V
Aug 28, 2015 9:31 PM UTC

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

Translate
1-Visitor
Aug 28, 2015 9:42 PM UTC

Thank you so much. It works now

Translate
23-Emerald V
Aug 28, 2015 9:43 PM UTC

Hossein Gholizadeh wrote:

Thank you so much. It works now

No problem.

Stuart

Translate