Replace another usage of unwrap with a pattern match
change eval_cond to use an iterator instead of a while loop with index
eval_cond: use move_iter and pattern matching instead of clone and unwrap