And/or logic in IRAF
Elden Paul Iverson wrote on Jul 27, 2007
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
i.e. match ("light" or "object", "datalist1", > "datalist2")
Thanks,
Paul
SongHuang wrote on Jul 27, 2007
and is &&
or is ||
I just know this works on the tselect
or is ||
I just know this works on the tselect
Mike Fitzpatrick wrote on Jul 27, 2007
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.
Otherwise it's up to the task whether things like this are supported directly.
-Mike
cl> match ("foo", "data") | match ("bar", "STDIN", .> "datalist2")Otherwise it's up to the task whether things like this are supported directly.
-Mike
Last post on Jul 27, 2007