[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

if/else execution in elisp

From: ken
Subject: if/else execution in elisp
Date: Thu, 17 Oct 2002 09:08:50 -0400 (EDT)

This should be simple.  It is in every other language I've ever used.  
Here's an if/else:

  (if (> lb 5)
      (setq hh (+ 2 hh)  lb (+ 4 lb))           ; if true
            (setq hh (+ 1 hh) lb (+ 3 lb))      ; if false

What I'm trying to do should be obvious.  If not:

If lb is greater than 5, increment hh and lb by 2 and 4 respectively.
If not, increment hh and lb by 1 and 3 respectively.


AMD crashes?  See

reply via email to

[Prev in Thread] Current Thread [Next in Thread]