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

Function does not work with adding if statement

SOLVED
Highlighted
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

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Function does not work with adding if statement

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

Re: Function does not work with adding if statement

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

Re: Function does not work with adding if statement

Thank you so much. It works now

Re: Function does not work with adding if statement

Hossein Gholizadeh wrote:

Thank you so much. It works now

No problem.

Stuart

Announcements