From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: if/else execution in elisp Date: Thu, 17 Oct 2002 09:08:50 -0400 (EDT) Sender: help-gnu-emacs-admin@gnu.org Message-ID: Reply-To: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1034981457 3252 80.91.224.249 (18 Oct 2002 22:50:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2002 22:50:57 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182fxI-0000q4-00 for ; Sat, 19 Oct 2002 00:50:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182dqC-0003rn-00; Fri, 18 Oct 2002 16:35:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182dpj-0003jk-00 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 16:34:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182dpf-0003i7-00 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 16:34:58 -0400 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182bMY-0000vs-01 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 13:56:42 -0400 Original-Received: from adsl-65-43-210-176.dsl.bcvloh.ameritech.net ([65.43.210.176] helo=heidegger.mousecar.net) by gnudist.gnu.org with esmtp (Exim 4.10) id 182APy-00010x-00 for help-gnu-emacs@gnu.org; Thu, 17 Oct 2002 09:10:27 -0400 Original-Received: from localhost (ken@localhost) by heidegger.mousecar.net (8.11.6/8.11.6) with ESMTP id g9HD8oV09439 for ; Thu, 17 Oct 2002 09:08:54 -0400 X-Authentication-Warning: heidegger.mousecar.net: ken owned process doing -bs X-X-Sender: Original-To: Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2720 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2720 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. Appreciated. -- AMD crashes? See http://cleveland.lug.net/~ken/amd-problem/.