LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
aparsloe <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Tue, 25 Aug 2015 16:51:50 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
There have been a number of occasions in my recent (no doubt amateurish) 
efforts when I have wished there were (e.g.) a \tl_case_in:NnTF 
statement, in which a token list variable is tested not for equality 
against a single token in each case, but whether it is in a token list 
in each case:

\tl_case_in:Nn <tl-var>
     {
         { token list 1 } {  code 1 }
         { token list 2 } { code 2 }
         ...
     }
     ...
An analogy would be the Select Case statement from dear old 
line-numbered BASIC in which the various alternatives were statements 
like <5,  =6, >7, and so on.

Andrew




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

ATOM RSS1 RSS2