The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 if statmements and column data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

LabTalk user

USA
35 Posts

Posted - 09/17/2010 :  7:43:50 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR3
Operating System: XP

if(col(2) >= col(3) || col(2) <= col(4))
{
type -b Your data is outside of the allowed ranges;
}

I am trying to compare every data point in these columns. How do I do that?

Thanks!

DataConv

Germany
60 Posts

Posted - 09/21/2010 :  01:16:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I assume your table is as followed:
col(2) holds your data
col(3) determines your maximum
col(4) determines your minimum
For working correctly, columns 2,3 and 4 must have the same size. However, if you have just 2 single values for min and max just use 'col(3)[1]' and 'col(4)[1]'. Or even better, create a variable like 'rmin=col(4)[1];' to work with...
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000