the 'if' command
the 'if' command
(OP)
I want a calculation to tell me if something is 'OK' or 'NG'. How do I write it in MathCAD? I can do it in excell, but unfamiliar with MathCAD.
ex. A=1
B=2
=if(A<B,OK,NG)
Granted that did nto work, and tried putting quotes but still not working. Any help would be greatly appreciated.
ex. A=1
B=2
=if(A<B,OK,NG)
Granted that did nto work, and tried putting quotes but still not working. Any help would be greatly appreciated.
RE: the 'if' command
Cheers
Greg Locock
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
RE: the 'if' command
A:=1
B:=2
if(A<B,"OK","NG")=
Or assign to a variable:
Answer:=if(A<B,"OK","NG")
Answer=
Peter
RE: the 'if' command
The help file is quite specific in not typing the words "if" or "otherwise" in the construct as they WONT work.