Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matcad Pro if statement

Status
Not open for further replies.

YSINC

Structural
Joined
Mar 17, 2004
Messages
9
Location
US
I am a new user and I am having trouble with an if statement:

determine:
if, v1<=v2 then, fb1
if, v2<v1<=V3 then, fb2
if, v1>v3 then, fb3

write:
the result for fbn=xxxxx
 
if(v1<=v2,fb1,if(v1>v3,fb3,fb2))

TTFN
 
Thank you,
I figured it out. The help file in my software states do not type the "if" statement use the programing toolbar button. I did this and the "if" was preceeded by a placeholder, which was irremovable causing an error. Anyway, I finally decided to type the "if" and it worked fine. Thank you for the reply.
John
 
The programming toolbar "if" is a program control statement, whereas "if(,,) is a built-in function.

TTFN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top