How to check if comma list is empty?How to process a comma separated list?Sorting Comma Separated Lists defined with, or without macroEmulating @ifnextchar in expl3Check if a number is in a comma separated list (print or display selected sections from a specific list)Extract from a token containing a list with math contentHow to test whether pic text is empty in TiKZ?Membership check on comma separated listHow to sort a comma separated list?expl3 read a comma list from fileHow to suppress comma list from outputting its values on declaration?
To whom did Varys write those letters in Game of Thrones S8E5?
Which creature is depicted in this Xanathar's Guide illustration of a war mage?
Cuban Primes
What do you call the hair or body hair you trim off your body?
Single word that parallels "Recent" when discussing the near future
What color to choose as "danger" if the main color of my app is red
Can my American children re-enter the USA by International flight with a passport card? Being that their passport book has expired
Why commonly or frequently used fonts sizes are even numbers like 10px, 12px, 16px, 24px, or 32px?
How to check if comma list is empty?
Does addError() work outside of triggers?
Using chord iii in a chord progression (major key)
Does the wearer know what items are in which patch in the Robe of Useful items?
What is the effect of the Feeblemind spell on Ability Score Improvements?
How to redirect stdout to a file, and stdout+stderr to another one?
Was the dragon prowess intentionally downplayed in S08E04?
What metal is most suitable for a ladder submerged in an underground water tank?
When did game consoles begin including FPUs?
UUID type for NEWID()
Why is the Advance Variation considered strong vs the Caro-Kann but not vs the Scandinavian?
Wireless headphones interfere with Wi-Fi signal on laptop
How do I know which cipher suites can be disabled?
Promotion comes with unexpected 24/7/365 on-call
Why did the UK remove the 'European Union' from its passport?
Can I say: "When was your train leaving?" if the train leaves in the future?
How to check if comma list is empty?
How to process a comma separated list?Sorting Comma Separated Lists defined with, or without macroEmulating @ifnextchar in expl3Check if a number is in a comma separated list (print or display selected sections from a specific list)Extract from a token containing a list with math contentHow to test whether pic text is empty in TiKZ?Membership check on comma separated listHow to sort a comma separated list?expl3 read a comma list from fileHow to suppress comma list from outputting its values on declaration?
How do I check if myList
is empty? Following (is my attempt) prints "NOT empty" when, in fact, the list is empty.
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
cs_if_eq:NNTFmyListEMPTYNOT empty
ExplSyntaxOff
enddocument
EDIT: I found a way to do so (below) but would like you to share another approach (it's interesting to see how else it can be done):
clist_new:NmyList
clist_new:NemptyList
clist_set:NnmyList % assign "emptiness" to the list (although it had already been empty to begin with)
cs_if_eq:NNTFmyListemptyListEMPTYNOT empty
conditionals expl3 latex3 comma-separated-list
add a comment |
How do I check if myList
is empty? Following (is my attempt) prints "NOT empty" when, in fact, the list is empty.
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
cs_if_eq:NNTFmyListEMPTYNOT empty
ExplSyntaxOff
enddocument
EDIT: I found a way to do so (below) but would like you to share another approach (it's interesting to see how else it can be done):
clist_new:NmyList
clist_new:NemptyList
clist_set:NnmyList % assign "emptiness" to the list (although it had already been empty to begin with)
cs_if_eq:NNTFmyListemptyListEMPTYNOT empty
conditionals expl3 latex3 comma-separated-list
3
clist_if_empty:NTF
.
– Ulrike Fischer
4 hours ago
2
What Ulrike said, plus the “proper” way to make aclist
empty isclist_clear:N myList
. (Deep down is basically the same, but exist for semantics).
– Phelype Oleinik
4 hours ago
add a comment |
How do I check if myList
is empty? Following (is my attempt) prints "NOT empty" when, in fact, the list is empty.
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
cs_if_eq:NNTFmyListEMPTYNOT empty
ExplSyntaxOff
enddocument
EDIT: I found a way to do so (below) but would like you to share another approach (it's interesting to see how else it can be done):
clist_new:NmyList
clist_new:NemptyList
clist_set:NnmyList % assign "emptiness" to the list (although it had already been empty to begin with)
cs_if_eq:NNTFmyListemptyListEMPTYNOT empty
conditionals expl3 latex3 comma-separated-list
How do I check if myList
is empty? Following (is my attempt) prints "NOT empty" when, in fact, the list is empty.
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
cs_if_eq:NNTFmyListEMPTYNOT empty
ExplSyntaxOff
enddocument
EDIT: I found a way to do so (below) but would like you to share another approach (it's interesting to see how else it can be done):
clist_new:NmyList
clist_new:NemptyList
clist_set:NnmyList % assign "emptiness" to the list (although it had already been empty to begin with)
cs_if_eq:NNTFmyListemptyListEMPTYNOT empty
conditionals expl3 latex3 comma-separated-list
conditionals expl3 latex3 comma-separated-list
edited 5 hours ago
bp2017
asked 5 hours ago
bp2017bp2017
920116
920116
3
clist_if_empty:NTF
.
– Ulrike Fischer
4 hours ago
2
What Ulrike said, plus the “proper” way to make aclist
empty isclist_clear:N myList
. (Deep down is basically the same, but exist for semantics).
– Phelype Oleinik
4 hours ago
add a comment |
3
clist_if_empty:NTF
.
– Ulrike Fischer
4 hours ago
2
What Ulrike said, plus the “proper” way to make aclist
empty isclist_clear:N myList
. (Deep down is basically the same, but exist for semantics).
– Phelype Oleinik
4 hours ago
3
3
clist_if_empty:NTF
.– Ulrike Fischer
4 hours ago
clist_if_empty:NTF
.– Ulrike Fischer
4 hours ago
2
2
What Ulrike said, plus the “proper” way to make a
clist
empty is clist_clear:N myList
. (Deep down is basically the same, but exist for semantics).– Phelype Oleinik
4 hours ago
What Ulrike said, plus the “proper” way to make a
clist
empty is clist_clear:N myList
. (Deep down is basically the same, but exist for semantics).– Phelype Oleinik
4 hours ago
add a comment |
2 Answers
2
active
oldest
votes
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
clist_if_empty:NTF myList EMPTY NOT EMPTY
ExplSyntaxOff
enddocument
run texdoc l3clist
How can I use AND (&&) during thisclist_if_empty
check to also perform check on additional list (or on something else) in one directive?
– bp2017
4 hours ago
1
Seebool_if:nTF
or (better) e.g.bool_lazy_or:nnTF
, all ininterface3
.
– Joseph Wright♦
4 hours ago
@JosephWright, thank you. I've seen those and read a bit about them but I have no idea how to combine them with a conditional statement likeclist_if_empty
. I'll take a look again and see if I can find this information this time.
– bp2017
4 hours ago
1
@bp2017 You can always use thec
-type variants, e..gclist_new:c myList2
. Note though that there is no escaping the catcode and token basis of TeX. Also note that standardexpl3
style would bel_bp_mylist_clist
or similar.
– Joseph Wright♦
3 hours ago
1
@bp2017 You want the predicates:clist_if_empty_p:N
, and so on
– Joseph Wright♦
3 hours ago
|
show 2 more comments
The test you want is clist_if_empty:N(TF)
: each data type has an appropriate test for emptiness or similar. These are defined such that they are 'aware' of the internal nature of data types (for example an empty prop
is not entirely empty at the macro level).
Your cs_if_empty:NN(TF)
test is wrong as the second argument you have given is no N
type (a single token), but is rather n
-type (in this case, an empty token list). You could in this case do a low-level test, for example
cs_if_eq:NN(TF) myList c_empty_clist <true> <false>
or by expanding the list to a 'raw' token list
tl_if_blank:V(TF) c_empty_clist <true> <false>
There is a style intikzset
namedmyStyle
, I tried to pass#1
of that style (which contains all the arguments passed to the style, supplied through a node or a path directive which calls that style with or without arguments) inside/utils/exec
asclist_set:NnmyList#1
. But for some reason when the style is used with no arguments (likepath node[myStyle];
), the list is NOT empty (it's empty only whenpath node[myStyle=];
). I'm trying to figure out why I get such result (and trying to look what#1
contains in this case, but having difficulties so far).
– bp2017
4 hours ago
1
@bp2017 There is some 'back end' inpgf
that may be responsible, but I'd be tempted just toshowtokens
the input#1
.
– Joseph Wright♦
4 hours ago
Great! Here is the answer:showtokens pgfkeysnovalue
. So I'll be checking against thispgfkeysnovalue
in case no arguments were supplied at all.
– bp2017
4 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f490862%2fhow-to-check-if-comma-list-is-empty%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
clist_if_empty:NTF myList EMPTY NOT EMPTY
ExplSyntaxOff
enddocument
run texdoc l3clist
How can I use AND (&&) during thisclist_if_empty
check to also perform check on additional list (or on something else) in one directive?
– bp2017
4 hours ago
1
Seebool_if:nTF
or (better) e.g.bool_lazy_or:nnTF
, all ininterface3
.
– Joseph Wright♦
4 hours ago
@JosephWright, thank you. I've seen those and read a bit about them but I have no idea how to combine them with a conditional statement likeclist_if_empty
. I'll take a look again and see if I can find this information this time.
– bp2017
4 hours ago
1
@bp2017 You can always use thec
-type variants, e..gclist_new:c myList2
. Note though that there is no escaping the catcode and token basis of TeX. Also note that standardexpl3
style would bel_bp_mylist_clist
or similar.
– Joseph Wright♦
3 hours ago
1
@bp2017 You want the predicates:clist_if_empty_p:N
, and so on
– Joseph Wright♦
3 hours ago
|
show 2 more comments
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
clist_if_empty:NTF myList EMPTY NOT EMPTY
ExplSyntaxOff
enddocument
run texdoc l3clist
How can I use AND (&&) during thisclist_if_empty
check to also perform check on additional list (or on something else) in one directive?
– bp2017
4 hours ago
1
Seebool_if:nTF
or (better) e.g.bool_lazy_or:nnTF
, all ininterface3
.
– Joseph Wright♦
4 hours ago
@JosephWright, thank you. I've seen those and read a bit about them but I have no idea how to combine them with a conditional statement likeclist_if_empty
. I'll take a look again and see if I can find this information this time.
– bp2017
4 hours ago
1
@bp2017 You can always use thec
-type variants, e..gclist_new:c myList2
. Note though that there is no escaping the catcode and token basis of TeX. Also note that standardexpl3
style would bel_bp_mylist_clist
or similar.
– Joseph Wright♦
3 hours ago
1
@bp2017 You want the predicates:clist_if_empty_p:N
, and so on
– Joseph Wright♦
3 hours ago
|
show 2 more comments
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
clist_if_empty:NTF myList EMPTY NOT EMPTY
ExplSyntaxOff
enddocument
run texdoc l3clist
documentclassstandalone
usepackageexpl3
begindocument
ExplSyntaxOn
clist_new:NmyList
clist_set:NnmyList
clist_if_empty:NTF myList EMPTY NOT EMPTY
ExplSyntaxOff
enddocument
run texdoc l3clist
answered 4 hours ago
Red-CloudRed-Cloud
2,04312
2,04312
How can I use AND (&&) during thisclist_if_empty
check to also perform check on additional list (or on something else) in one directive?
– bp2017
4 hours ago
1
Seebool_if:nTF
or (better) e.g.bool_lazy_or:nnTF
, all ininterface3
.
– Joseph Wright♦
4 hours ago
@JosephWright, thank you. I've seen those and read a bit about them but I have no idea how to combine them with a conditional statement likeclist_if_empty
. I'll take a look again and see if I can find this information this time.
– bp2017
4 hours ago
1
@bp2017 You can always use thec
-type variants, e..gclist_new:c myList2
. Note though that there is no escaping the catcode and token basis of TeX. Also note that standardexpl3
style would bel_bp_mylist_clist
or similar.
– Joseph Wright♦
3 hours ago
1
@bp2017 You want the predicates:clist_if_empty_p:N
, and so on
– Joseph Wright♦
3 hours ago
|
show 2 more comments
How can I use AND (&&) during thisclist_if_empty
check to also perform check on additional list (or on something else) in one directive?
– bp2017
4 hours ago
1
Seebool_if:nTF
or (better) e.g.bool_lazy_or:nnTF
, all ininterface3
.
– Joseph Wright♦
4 hours ago
@JosephWright, thank you. I've seen those and read a bit about them but I have no idea how to combine them with a conditional statement likeclist_if_empty
. I'll take a look again and see if I can find this information this time.
– bp2017
4 hours ago
1
@bp2017 You can always use thec
-type variants, e..gclist_new:c myList2
. Note though that there is no escaping the catcode and token basis of TeX. Also note that standardexpl3
style would bel_bp_mylist_clist
or similar.
– Joseph Wright♦
3 hours ago
1
@bp2017 You want the predicates:clist_if_empty_p:N
, and so on
– Joseph Wright♦
3 hours ago
How can I use AND (&&) during this
clist_if_empty
check to also perform check on additional list (or on something else) in one directive?– bp2017
4 hours ago
How can I use AND (&&) during this
clist_if_empty
check to also perform check on additional list (or on something else) in one directive?– bp2017
4 hours ago
1
1
See
bool_if:nTF
or (better) e.g. bool_lazy_or:nnTF
, all in interface3
.– Joseph Wright♦
4 hours ago
See
bool_if:nTF
or (better) e.g. bool_lazy_or:nnTF
, all in interface3
.– Joseph Wright♦
4 hours ago
@JosephWright, thank you. I've seen those and read a bit about them but I have no idea how to combine them with a conditional statement like
clist_if_empty
. I'll take a look again and see if I can find this information this time.– bp2017
4 hours ago
@JosephWright, thank you. I've seen those and read a bit about them but I have no idea how to combine them with a conditional statement like
clist_if_empty
. I'll take a look again and see if I can find this information this time.– bp2017
4 hours ago
1
1
@bp2017 You can always use the
c
-type variants, e..g clist_new:c myList2
. Note though that there is no escaping the catcode and token basis of TeX. Also note that standard expl3
style would be l_bp_mylist_clist
or similar.– Joseph Wright♦
3 hours ago
@bp2017 You can always use the
c
-type variants, e..g clist_new:c myList2
. Note though that there is no escaping the catcode and token basis of TeX. Also note that standard expl3
style would be l_bp_mylist_clist
or similar.– Joseph Wright♦
3 hours ago
1
1
@bp2017 You want the predicates:
clist_if_empty_p:N
, and so on– Joseph Wright♦
3 hours ago
@bp2017 You want the predicates:
clist_if_empty_p:N
, and so on– Joseph Wright♦
3 hours ago
|
show 2 more comments
The test you want is clist_if_empty:N(TF)
: each data type has an appropriate test for emptiness or similar. These are defined such that they are 'aware' of the internal nature of data types (for example an empty prop
is not entirely empty at the macro level).
Your cs_if_empty:NN(TF)
test is wrong as the second argument you have given is no N
type (a single token), but is rather n
-type (in this case, an empty token list). You could in this case do a low-level test, for example
cs_if_eq:NN(TF) myList c_empty_clist <true> <false>
or by expanding the list to a 'raw' token list
tl_if_blank:V(TF) c_empty_clist <true> <false>
There is a style intikzset
namedmyStyle
, I tried to pass#1
of that style (which contains all the arguments passed to the style, supplied through a node or a path directive which calls that style with or without arguments) inside/utils/exec
asclist_set:NnmyList#1
. But for some reason when the style is used with no arguments (likepath node[myStyle];
), the list is NOT empty (it's empty only whenpath node[myStyle=];
). I'm trying to figure out why I get such result (and trying to look what#1
contains in this case, but having difficulties so far).
– bp2017
4 hours ago
1
@bp2017 There is some 'back end' inpgf
that may be responsible, but I'd be tempted just toshowtokens
the input#1
.
– Joseph Wright♦
4 hours ago
Great! Here is the answer:showtokens pgfkeysnovalue
. So I'll be checking against thispgfkeysnovalue
in case no arguments were supplied at all.
– bp2017
4 hours ago
add a comment |
The test you want is clist_if_empty:N(TF)
: each data type has an appropriate test for emptiness or similar. These are defined such that they are 'aware' of the internal nature of data types (for example an empty prop
is not entirely empty at the macro level).
Your cs_if_empty:NN(TF)
test is wrong as the second argument you have given is no N
type (a single token), but is rather n
-type (in this case, an empty token list). You could in this case do a low-level test, for example
cs_if_eq:NN(TF) myList c_empty_clist <true> <false>
or by expanding the list to a 'raw' token list
tl_if_blank:V(TF) c_empty_clist <true> <false>
There is a style intikzset
namedmyStyle
, I tried to pass#1
of that style (which contains all the arguments passed to the style, supplied through a node or a path directive which calls that style with or without arguments) inside/utils/exec
asclist_set:NnmyList#1
. But for some reason when the style is used with no arguments (likepath node[myStyle];
), the list is NOT empty (it's empty only whenpath node[myStyle=];
). I'm trying to figure out why I get such result (and trying to look what#1
contains in this case, but having difficulties so far).
– bp2017
4 hours ago
1
@bp2017 There is some 'back end' inpgf
that may be responsible, but I'd be tempted just toshowtokens
the input#1
.
– Joseph Wright♦
4 hours ago
Great! Here is the answer:showtokens pgfkeysnovalue
. So I'll be checking against thispgfkeysnovalue
in case no arguments were supplied at all.
– bp2017
4 hours ago
add a comment |
The test you want is clist_if_empty:N(TF)
: each data type has an appropriate test for emptiness or similar. These are defined such that they are 'aware' of the internal nature of data types (for example an empty prop
is not entirely empty at the macro level).
Your cs_if_empty:NN(TF)
test is wrong as the second argument you have given is no N
type (a single token), but is rather n
-type (in this case, an empty token list). You could in this case do a low-level test, for example
cs_if_eq:NN(TF) myList c_empty_clist <true> <false>
or by expanding the list to a 'raw' token list
tl_if_blank:V(TF) c_empty_clist <true> <false>
The test you want is clist_if_empty:N(TF)
: each data type has an appropriate test for emptiness or similar. These are defined such that they are 'aware' of the internal nature of data types (for example an empty prop
is not entirely empty at the macro level).
Your cs_if_empty:NN(TF)
test is wrong as the second argument you have given is no N
type (a single token), but is rather n
-type (in this case, an empty token list). You could in this case do a low-level test, for example
cs_if_eq:NN(TF) myList c_empty_clist <true> <false>
or by expanding the list to a 'raw' token list
tl_if_blank:V(TF) c_empty_clist <true> <false>
answered 4 hours ago
Joseph Wright♦Joseph Wright
207k23568897
207k23568897
There is a style intikzset
namedmyStyle
, I tried to pass#1
of that style (which contains all the arguments passed to the style, supplied through a node or a path directive which calls that style with or without arguments) inside/utils/exec
asclist_set:NnmyList#1
. But for some reason when the style is used with no arguments (likepath node[myStyle];
), the list is NOT empty (it's empty only whenpath node[myStyle=];
). I'm trying to figure out why I get such result (and trying to look what#1
contains in this case, but having difficulties so far).
– bp2017
4 hours ago
1
@bp2017 There is some 'back end' inpgf
that may be responsible, but I'd be tempted just toshowtokens
the input#1
.
– Joseph Wright♦
4 hours ago
Great! Here is the answer:showtokens pgfkeysnovalue
. So I'll be checking against thispgfkeysnovalue
in case no arguments were supplied at all.
– bp2017
4 hours ago
add a comment |
There is a style intikzset
namedmyStyle
, I tried to pass#1
of that style (which contains all the arguments passed to the style, supplied through a node or a path directive which calls that style with or without arguments) inside/utils/exec
asclist_set:NnmyList#1
. But for some reason when the style is used with no arguments (likepath node[myStyle];
), the list is NOT empty (it's empty only whenpath node[myStyle=];
). I'm trying to figure out why I get such result (and trying to look what#1
contains in this case, but having difficulties so far).
– bp2017
4 hours ago
1
@bp2017 There is some 'back end' inpgf
that may be responsible, but I'd be tempted just toshowtokens
the input#1
.
– Joseph Wright♦
4 hours ago
Great! Here is the answer:showtokens pgfkeysnovalue
. So I'll be checking against thispgfkeysnovalue
in case no arguments were supplied at all.
– bp2017
4 hours ago
There is a style in
tikzset
named myStyle
, I tried to pass #1
of that style (which contains all the arguments passed to the style, supplied through a node or a path directive which calls that style with or without arguments) inside /utils/exec
as clist_set:NnmyList#1
. But for some reason when the style is used with no arguments (like path node[myStyle];
), the list is NOT empty (it's empty only when path node[myStyle=];
). I'm trying to figure out why I get such result (and trying to look what #1
contains in this case, but having difficulties so far).– bp2017
4 hours ago
There is a style in
tikzset
named myStyle
, I tried to pass #1
of that style (which contains all the arguments passed to the style, supplied through a node or a path directive which calls that style with or without arguments) inside /utils/exec
as clist_set:NnmyList#1
. But for some reason when the style is used with no arguments (like path node[myStyle];
), the list is NOT empty (it's empty only when path node[myStyle=];
). I'm trying to figure out why I get such result (and trying to look what #1
contains in this case, but having difficulties so far).– bp2017
4 hours ago
1
1
@bp2017 There is some 'back end' in
pgf
that may be responsible, but I'd be tempted just to showtokens
the input #1
.– Joseph Wright♦
4 hours ago
@bp2017 There is some 'back end' in
pgf
that may be responsible, but I'd be tempted just to showtokens
the input #1
.– Joseph Wright♦
4 hours ago
Great! Here is the answer:
showtokens pgfkeysnovalue
. So I'll be checking against this pgfkeysnovalue
in case no arguments were supplied at all.– bp2017
4 hours ago
Great! Here is the answer:
showtokens pgfkeysnovalue
. So I'll be checking against this pgfkeysnovalue
in case no arguments were supplied at all.– bp2017
4 hours ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f490862%2fhow-to-check-if-comma-list-is-empty%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
clist_if_empty:NTF
.– Ulrike Fischer
4 hours ago
2
What Ulrike said, plus the “proper” way to make a
clist
empty isclist_clear:N myList
. (Deep down is basically the same, but exist for semantics).– Phelype Oleinik
4 hours ago