summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ifallfalse
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-23 20:08:50 +0000
committerKarl Berry <karl@freefriends.org>2021-07-23 20:08:50 +0000
commit17435dbc87ef4c15ed383dffdb4b2ba093bb0fa8 (patch)
tree3161b53089af685f4ea6895fb253e7c7d7612bac /Master/texmf-dist/tex/latex/ifallfalse
parent6ac7453f863d3ae49112f4eed4cc5232ae886b66 (diff)
ifallfalse (23jul21)
git-svn-id: svn://tug.org/texlive/trunk@60027 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ifallfalse')
-rw-r--r--Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty22
1 files changed, 15 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty b/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty
index fbd4eedffa1..deab2fd175d 100644
--- a/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty
+++ b/Master/texmf-dist/tex/latex/ifallfalse/ifallfalse.sty
@@ -15,15 +15,23 @@
%% version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ifallfalse}[2021/07/12 v1.0.1 Compare string against set of other strings]
+\ProvidesPackage{ifallfalse}[2021/07/22 v2.0.0 Compare string against set of other strings]
-\newenvironment{allfalse}[2]
-{
- \def\comparedstring{#1}
- \def\logicbody{#2}
+\newenvironment{allfalse}[3]
+{%
+ \newif\ifallfalse@branch\allfalse@branchtrue%
+ \def\comparedstring{#1}%
+ \def\trueaction{#2}%
+ \def\falseaction{#3}%
+ \def\logicbody{\protect\allfalse@branchfalse}%
}
-{
- \logicbody
+{%
+ \logicbody%
+ \ifallfalse@branch
+ \trueaction%
+ \else
+ \falseaction%
+ \fi
}
\newcommand*\@allfalsename{allfalse}