lpolo has the correct answer, but I thought I'd clarify a bit.
The operators match criteria, so:
AND - is used in the format if(id=? AND name=?,TRUE, FALSE) so both criteria, working on a boolean basis, should return 1, then it will carry on and return true.
OR - is used in the format if(id=? OR name=?, TRUE, FALSE) so it will continue if either of the fields match
What you're attempting to do, is to check if the ID matches, or the name matches, then you wish to display the ID and the Name, so you should be using the OR; index=yourindex id=? OR name=? | table _time, id, name
Hope that cleared things up.
... View more