(cond
((string= key "last")
(<= (length (memq number population))
- (string-to-int (elmo-filter-value condition))))
+ (string-to-number (elmo-filter-value condition))))
((string= key "first")
(< (- (length population)
(length (memq number population)))
- (string-to-int (elmo-filter-value condition))))
+ (string-to-number (elmo-filter-value condition))))
((string= key "flag")
(let ((flags (elmo-msgdb-flags msgdb number)))
(cond ((string= (elmo-filter-value condition) "any")