From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 3F39C2E95E for ; Tue, 22 Oct 2024 07:37:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 21CE9485212 for ; Tue, 22 Oct 2024 07:33:36 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:user-agent:references:in-reply-to:message-id:date :date:from:from:mime-version:received:received:received:received :received; s=cgl; t=1729575215; x=1732167216; bh=MG2VJ8YsDL6tcfk mQWy6NkYoDqwuXDAbaIly9rOlkfQ=; b=UHC3o+jfTbeeY7XwGOaRCEh7IiEoAAj jyHDNmDZDzxzwz+N3U08Mj5jr3KnSLZ/eikecG6VFGRSKczXiw7z7jiphxp1cIUE 9PeA6l3XMiHSidOU9MlyFCM7yWQJ7Tni02knakZLpMyHhQeXUVM928KMCixObXeH HD4ITj6vBg1w= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gOJLT4sq3Pop for ; Tue, 22 Oct 2024 07:33:35 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 071DE4850F2 for ; Tue, 22 Oct 2024 07:32:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3090C4850ED for ; Tue, 22 Oct 2024 07:32:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GEzoXHgDPxhn for ; Tue, 22 Oct 2024 07:32:10 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CC39D4850EC for ; Tue, 22 Oct 2024 07:32:10 +0200 (CEST) MIME-Version: 1.0 From: ai2472206007@yeah.net To: ntg-context@ntg.nl Date: Tue, 22 Oct 2024 05:32:10 -0000 Message-ID: <172957513082.1601626.6637189551431635250@cgl.ntg.nl> In-Reply-To: <3a6bd5a4-0948-52b8-60da-af7824f2891e@gmail.com> References: <3a6bd5a4-0948-52b8-60da-af7824f2891e@gmail.com> User-Agent: HyperKitty on http://mailman.ntg.nl/ Message-ID-Hash: WVLTPTPMN7X2KQF7YYVJSRPVXE4ZBORJ X-Message-ID-Hash: WVLTPTPMN7X2KQF7YYVJSRPVXE4ZBORJ X-MailFrom: ai2472206007@yeah.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Why didn't I get the correct ordinal number, after defining an environment via command "installcounterassociation". List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thank you so much. I think I understand its usage. Also, regarding the "ifargument" command you mentioned, is it counting from 0 and then checking the arguments one by one? Because I only learned "iffirstargument", "ifsecondargument" from the wiki. Perhaps we should update the section on the wiki on defining optional parameters. ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________