Privacy Policy
Terms of Use

User Functions

Topics


Welcome to iraf.net Thursday, May 02 2024 @ 11:50 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 And/or logic in IRAF
   
piverson
 07/27/2007 04:37PM (Read 3462 times)  
+++--
Chatty

Status: offline


Registered: 07/10/2007
Posts: 42
Is there and/or logic in IRAF and if so do you have any short examples of its use. I am trying to use it in a match command.i.e. match ("light" or "object", "datalist1", > "datalist2")Thanks,
Paul

 
Profile Email
 Quote
Quietskies
 07/27/2007 04:37PM  
++---
Junior

Status: offline


Registered: 05/01/2007
Posts: 17
and is &&or is ||I just know this works on the tselect

Astronomy is life, Others, mere details
 
Profile Email
 Quote
fitz
 07/27/2007 04:37PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
In the case of MATCH, and generally, you can't logically and/or params as in your example. To OR: run the task twice. To AND: pipe the results of one match into another, e.g.[code:1:3eb908694f]cl> match ("foo", "data") | match ("bar", "STDIN", .> "datalist2")[/code:1:3eb908694f]Otherwise it's up to the task whether things like this are supported directly.-Mike

 
Profile Email
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies