Browse Source

added ifendswith command

master
Bit 2 years ago
parent
commit
3fa58d6fab
  1. 6
      base/commands.tex

6
base/commands.tex

@ -1 +1,7 @@
\add{base/commands/math}
\newcommand{\ifendswith}[4]{
\StrLen{#2}[\strlen]
\StrRight{#1}{\strlen}[\strright]
\ifthenelse{ \equal{\strright}{#2} }{#3}{#4}
}
Loading…
Cancel
Save