changed example and fixed implementation of evcond