subengr
Structural
- May 10, 2010
- 9
If I have a unity check matrix:
.67
.90
.55
UC = .54
.90
1.03
.68
I want it to do a check of all the numbers in the matrix and if a number is above one I want it to say "NG", otherwise write "OK". However I dont want to do a bunch of OR statements because the real matrix is a lot bigger (if UC[1]>1 OR UC[2]>1,...,etc).
How can I create a loop that does the same thing? Right now I doing if UC[n]>1 then "NG" but it doesnt seem to want to run the way I wrote it.
Thanks
.67
.90
.55
UC = .54
.90
1.03
.68
I want it to do a check of all the numbers in the matrix and if a number is above one I want it to say "NG", otherwise write "OK". However I dont want to do a bunch of OR statements because the real matrix is a lot bigger (if UC[1]>1 OR UC[2]>1,...,etc).
How can I create a loop that does the same thing? Right now I doing if UC[n]>1 then "NG" but it doesnt seem to want to run the way I wrote it.
Thanks