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=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 1939F2267E for ; Sun, 3 Nov 2024 12:08:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 402A2484E8A for ; Sun, 3 Nov 2024 12:05:46 +0100 (CET) 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:from:from :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:content-language:references:mime-version :date:date:message-id:received:received:received:received :received:received:received; s=cgl; t=1730631945; x=1733223946; bh=CpRzLJb8mEkDHvgBlRBZxC2LVuUNdF7M9etyYlD5Ri4=; b=tWjWKhiwil2L G17SABKKO2bwHph5E7UvvUjVD/uVsjD4qjFL10wOiGpS4p4xj+Ma5kGxKOMGJXVX plH6VEOtGos2tae5s5T9K/XifCcwzypPaYR+U85600//g+hwNYUvi1+/XVQVFEUB 2bZEP4OXmPR7ayWeJufwK4VRsntZUU0= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=klankschap.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 px_haFR0XpHJ for ; Sun, 3 Nov 2024 12:05:45 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 2F3C9484CCD for ; Sun, 3 Nov 2024 12:05:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C8DC24845B7 for ; Sun, 3 Nov 2024 12:04:18 +0100 (CET) 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 WQrqYQcun2PX for ; Sun, 3 Nov 2024 12:04:18 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.146; helo=outbound.soverin.net; envelope-from=vm@klankschap.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 74C144834CA for ; Sun, 3 Nov 2024 12:04:18 +0100 (CET) Received: from smtp.freedom.nl (c04cst-smtp-frd02.int.sover.in [10.10.4.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4XhBYs6vJFz57 for ; Sun, 3 Nov 2024 11:04:17 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4XhBYs4fmXz2xPh for ; Sun, 3 Nov 2024 11:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=klankschap.nl; s=soverin; t=1730631857; bh=muZZf95AGCeSdkrfNwJuRVV4EBdkwG8kGaNDMqLtB04=; h=Date:Subject:To:References:From:In-Reply-To:From; b=QAoJypQplj+ImMAqat/7+EVddxCfe1MFdKRZBXiyYlSlEUlfWqLSHl/AQR97ywhVe TdFT/ywIDZO/ztWxIGk/z/coGM3isj0QLzGgPAGHRxy26ltn3eau2wUkvI4oagYPgJ WsfIZobyx4TZ5BAz6tmwOz5lL4Abm0U4czON++L5MpBkeUOoNfLLAopZQAfNOels8f DaWGN+7QdmdBO4opRjeAPrljrDmDmcTv2xgzQi3Hvtsm9wfdbcxS3sG/UPkDOg3MiK jJKiy/IO04P6v/Hpm0El1zdYQw3mAYGejI0IzmSrPUoc3tuPTlh7yJ679Smv23qSjZ MiWhSqui8U/Zw== Message-ID: Date: Sun, 3 Nov 2024 12:04:17 +0100 MIME-Version: 1.0 To: ntg-context@ntg.nl References: <692582251.5119511.1730577725919.ref@mail.yahoo.com> <692582251.5119511.1730577725919@mail.yahoo.com> <6e210335-ab71-2a6e-b80d-2b13b1559e33@gmail.com> Content-Language: en-US, nl Autocrypt: addr=vm@klankschap.nl; keydata= xsFNBFaNY+4BEADcwBB0BgvjOz3nqJ8bFJ4hKBcVyO7iuTgvFGIbkJGA3xcm8BlVxZgAJLxU /u+VweKUTV3XNSa3DS50l9rpO8HqXeG1nOUIYpBwRuUKb6mTrRkumFRHJmfTORdopltg4uuV Bm7b5P34hSWhNhwOgW8fPAq7s9eLYQqK+Fob84wEJ6Abvx5IEcM9YjCJKlZcApeTm4nnvjRV JuWXyJNu1jRjSN2yUI6wKN1AYBXgmyvkl/ceiSbgAq64XTel3Bt+5M69OsWI2HOIlO3bdv16 vADrr782Y3iZKqf3H/reZDrXiZXxa8vyu0PbjJoVykqvmCjhJ3jqgzYu41uYm1MQAyi9XMk8 Ryh+LVOWrZIH53u34b4o8m4j3iibz00o8mJdnj9mRSvHr6PHf5sDiA45unKeEpJLQIW0rudo li5Krjzy08GgdnumfOgVe4Kd1ZZJZhkoadOTd+6eUPu+R+hJXnwz1A3Cit/IYpBHGU43sDVw O7mDWJeWUXJarOcpN6h5te1zniiksYlfpnkUTB6WWSOE+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NFiuXIqe1RgEalkI662s/+umieGdyCNOsRKSPA 22RED9M1LNMtbMBVlUy/o2Eqov66/4NqlyGX4vif6IVUTodVCPVwUrTdQMjxDwbiowwKyWEQ DsUMdgEM4oG1ng+I5ky7zRXE/bjjcySTGSd8rW2wNR/eInHFr0vQGi86YQPijHIdarFeTToF 7HonBvPb5tyfjZLmGgAtnT2iB4/7C5E9iJqTYcQngMZ8nqvKy+JA3MYnhH64aLyXr2C5CBvD g0VN+2fCdq9y7V+Y44+GTP1jfK50E25bNZLEEm9VGw== In-Reply-To: <6e210335-ab71-2a6e-b80d-2b13b1559e33@gmail.com> X-Spampanel-Class: ham Message-ID-Hash: MITTCYSBDB5BVBKQFUOZ5VXXKJOX442O X-Message-ID-Hash: MITTCYSBDB5BVBKQFUOZ5VXXKJOX442O X-MailFrom: vm@klankschap.nl 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: How can a macro check how many items are in a list? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: vm via ntg-context Cc: vm Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit and/or add the number of items to be expected: \starttexdefinition protected thisiymylist [#1] \getcommalistsize[#1] \doifelse{\commalistsize}{1} {Read the prompt below:\par} {Read {\em all} the \the\numexpr \commalistsize -1\relax\ prompts below:\par} \startitemize[n] \doloopoverlist{#1}{\startitem\recursestring\stopitem} \stopitemize \stoptexdefinition ___________________________________________________________________________________ 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 ___________________________________________________________________________________