Move cond eval logic out of main eval() and into a separate function. There's no unit test for cond yet, so committing this separately