Name: Anonymous 2012-01-30 20:27
I have a complex list of lists and want something to check the second element of every list of the list in the loop, any supported features like this?
ifs are doing what you want them to. First of all, null x needs to be inside parentheses. Also, in the first if expression, the inner if is part of the else block - it will be executed if x is non-null.(setq counter (+ counter 1)) -> (incf counter)let* is unnecessary in this case - use let.(if (null x) ...) -> (unless x ...) if there's no else(equal (mod counter 2) 0) -> (evenp counter) - same for 1, oddploop, close the parenthesis around and, and then you need the loop keyword do.