How do you find out which emacs version is running in elisp?

I want to do:

if version is emacs-21
    some code
else
    some other code