From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30745 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Define doifoneelse Date: Mon, 11 Sep 2006 12:14:26 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1804928587-1157991266=:13800" X-Trace: sea.gmane.org 1157991311 24698 80.91.229.2 (11 Sep 2006 16:15:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2006 16:15:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 11 18:15:07 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMoQp-0008Ss-Sc for gctc-ntg-context-518@m.gmane.org; Mon, 11 Sep 2006 18:14:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 005911FDDF; Mon, 11 Sep 2006 18:14:46 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24373-01; Mon, 11 Sep 2006 18:14:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74DE61FDCF; Mon, 11 Sep 2006 18:14:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6F7851FDCF for ; Mon, 11 Sep 2006 18:14:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18735-02-2 for ; Mon, 11 Sep 2006 18:14:33 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id A96931FCBD for ; Mon, 11 Sep 2006 18:14:32 +0200 (CEST) Original-Received: FROM eecs4327u10.engin.umich.edu (eecs4327u10.engin.umich.edu [141.213.51.138]) BY hackers.mr.itd.umich.edu ID 45058B66.EA816.22918 ; 11 Sep 2006 12:14:30 -0400 X-X-Sender: adityam@eecs4327u10.engin.umich.edu Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30745 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1804928587-1157991266=:13800 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 11 Sep 2006, Peter M=FCnster wrote: > On Mon, 11 Sep 2006, Aditya Mahajan wrote: > >> \doifoneelse{1}{a}{b} gives a >> \doifoneelse{1.5}{a}{b} gives b >> \doifonelese{string}{a}{b} gives b >> >> Can someone suggest how to define this? > > \def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}} Thanks Peter, I ended up using \def\doifoneelse#1{\doifelse{#1}{1}} which saves a few keystrokes :) Aditya ---559023410-1804928587-1157991266=:13800 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ---559023410-1804928587-1157991266=:13800--