Cockroach
Mechanical
- Jan 17, 2003
- 1,104
I have the following statements in a MathCAD 14 program:
X=1
Y=2000
XPRIME <== (X + 13) if X < 3
YPRIME <== (Y - 1) if X < 3
I find that the "if" statements are not executing, running the following debug lines generates "variable undefined" error, returned in red text.
Adding the two lines:
X=
Y=
does return 1 and 2000 respectively, so I know that the variables are good prior to the "if" statements.
XPRIME =
YPRIME =
What is wrong with the syntax? What am I missing?
Kenneth J Hueston, PEng
Principal
Sturni-Hueston Engineering Inc
Edmonton, Alberta Canada
X=1
Y=2000
XPRIME <== (X + 13) if X < 3
YPRIME <== (Y - 1) if X < 3
I find that the "if" statements are not executing, running the following debug lines generates "variable undefined" error, returned in red text.
Adding the two lines:
X=
Y=
does return 1 and 2000 respectively, so I know that the variables are good prior to the "if" statements.
XPRIME =
YPRIME =
What is wrong with the syntax? What am I missing?
Kenneth J Hueston, PEng
Principal
Sturni-Hueston Engineering Inc
Edmonton, Alberta Canada