> On 22/06/2018 18:48, Nick Dokos wrote:
   > A utility lisp function can enhance readability:

   > #+begin_src elisp
   >   (defun test-to-interval (x)
   >     (let ((n (string-to-number x)))
   >       (cond
   >        ((equal x "")              "NP")
   >        ((and (<= 0 n) (<= n 4.9)) "SS")
   >        ((and (<= 5 n) (<= n 6.9)) "AP")
   >        ((and (<= 7 n) (<= n 8.9)) "NT")
   >        ((and (<= 9 n) (<= n 10 )) "SB")
   >        (t                         "other"))))
   > #+end_src

This is extremely helpful! Thanks a lot. I hope France will make it to
the final of the World Cup (more I cannot wish you :-D )

@Nick, I think this example should make it into the documentation, for
example in  https://orgmode.org/worg/org-tutorials/org-lookups.html.

What do you think?

Uwe 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to