Feature request: Switch/Case

Philip Schlesinger <[email protected]> Tue, 25 Jun 2024 22:03:37 +0000
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <LV8PR17MB713541F0685AEC0013D43AA2AED52@LV8PR17MB7135.namprd17.prod.outlook.com>
--_007_LV8PR17MB713541F0685AEC0013D43AA2AED52LV8PR17MB7135namp_
Content-Type: multipart/alternative;
	boundary="_000_LV8PR17MB713541F0685AEC0013D43AA2AED52LV8PR17MB7135namp_"

--_000_LV8PR17MB713541F0685AEC0013D43AA2AED52LV8PR17MB7135namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi all,

I just searched https://velocity.apache.org/engine/2.3/user-guide.html , ht=
tps://issues.apache.org/jira/browse/VELOCITY , and https://lists.apache.org=
/[email protected] and I don=92t see a Switch/Case feature=
.  The only option at this point appears to be a series of IF / ELSEIF / EL=
SEIF / =85 / ELSEIF / ELSE / END.

Please add Switch/Case =96 or, in case I=92m completely blind, tell me wher=
e I can find the documentation on that feature?

Thanks!




--
UPCOMING SCHEDULED TIME OFF:

  *   July 4 & 5, 2024: Company Holidays
  *   August 5 through 9, 2024: PTO

Philip Schlesinger
Solution Architect =96 Core Systems

[Blue text on a black background  Description automatically generated]<http=
://www.cryoport.com/>
=AD=AD
Office:  +1 (949) 681-2794
24/7/365 Support:  +1 (949) 470-2305

Americas =95 EMEA =95 APAC
cryoport.com<http://cryoport.com/>

[A blue circle with white and black logo  Description automatically generat=
ed]<https://www.linkedin.com/company/856887>[A blue circle with white x in =
it  Description automatically generated]<https://twitter.com/cryoport> [A b=
lue circle with a white play button  Description automatically generated] <=
https://www.youtube.com/user/CryoportVideo>
=AD=AD
The information contained in this e-mail message is privileged and confiden=
tial information and is intended only for the use of the individual and/or =
entity identified in the address of this message. If the reader of this mes=
sage is not the intended recipient, or an employee or agent responsible to =
deliver it to the intended recipient, you are hereby notified that any disc=
losure, copying, distribution, or reliance upon the contents of this email =
is strictly prohibited. If you have received this communication in error, p=
lease notify us by return e-mail. In this circumstance, we request that you=
 delete the original message from your system.


--_000_LV8PR17MB713541F0685AEC0013D43AA2AED52LV8PR17MB7135namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Aptos;
	panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Aptos",sans-serif;
	mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#467886;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Aptos",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:11.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:348262704;
	mso-list-template-ids:270064016;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level2
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level4
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level5
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:2.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level6
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:3.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level7
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:3.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level8
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:4.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
@list l0:level9
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7 ;
	mso-level-tab-stop:4.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style>
</head>
<body lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi all,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I just searched <a href=3D"https://velocity.apache.o=
rg/engine/2.3/user-guide.html">
https://velocity.apache.org/engine/2.3/user-guide.html</a> , <a href=3D"htt=
ps://issues.apache.org/jira/browse/VELOCITY">
https://issues.apache.org/jira/browse/VELOCITY</a> , and <a href=3D"https:/=
/lists.apache.org/[email protected]">
https://lists.apache.org/[email protected]</a> and I don=
=92t see a Switch/Case feature.&nbsp; The only option at this point appears=
 to be a series of IF / ELSEIF / ELSEIF / =85 / ELSEIF / ELSE / END.<o:p></=
o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Please add Switch/Case =96 or, in case I=92m complet=
ely blind, tell me where I can find the documentation on that feature?<o:p>=
</o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks!<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif;mso-ligatures:none"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif;mso-ligatures:none"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif;mso-ligatures:none"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif;mso-ligatures:none">--&nbsp;<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><i><span style=3D"fon=
t-family:&quot;Calibri&quot;,sans-serif;color:#DD1C00;mso-ligatures:none">U=
PCOMING SCHEDULED TIME OFF:</span></i><span style=3D"font-family:&quot;Cali=
bri&quot;,sans-serif;color:#1D1D1D;mso-ligatures:none"><o:p></o:p></span></=
p>
<ul style=3D"margin-top:0in" type=3D"disc">
<li class=3D"MsoNormal" style=3D"color:#DD1C00;margin-bottom:12.0pt;mso-lis=
t:l0 level1 lfo1">
<i><span style=3D"font-family:&quot;Calibri&quot;,sans-serif;mso-ligatures:=
none">July 4 &amp; 5, 2024: Company Holidays</span></i><span style=3D"font-=
family:&quot;Calibri&quot;,sans-serif;mso-ligatures:none"><o:p></o:p></span=
></li><li class=3D"MsoNormal" style=3D"color:#DD1C00;margin-bottom:12.0pt;m=
so-list:l0 level1 lfo1">
<i><span style=3D"font-family:&quot;Calibri&quot;,sans-serif;mso-ligatures:=
none">August 5 through 9, 2024: PTO</span></i><span style=3D"font-family:&q=
uot;Calibri&quot;,sans-serif;mso-ligatures:none"><o:p></o:p></span></li></u=
l>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif;mso-ligatures:none"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class=3D"MsoNormal" style=3D"line-height:105%"><b><span style=3D"font-si=
ze:15.0pt;line-height:105%;font-family:&quot;Arial&quot;,sans-serif;color:#=
1B1CDD;mso-ligatures:none">Philip Schlesinger</span></b><span style=3D"font=
-family:&quot;Calibri&quot;,sans-serif;mso-ligatures:none"><br>
</span><b><span style=3D"font-size:10.0pt;line-height:105%;font-family:&quo=
t;Arial&quot;,sans-serif;color:#373A36;mso-ligatures:none">Solution Archite=
ct =96 Core Systems<o:p></o:p></span></b></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:9.0pt;font-family:&quot;=
Arial&quot;,sans-serif;color:#373A36;mso-ligatures:none"><o:p>&nbsp;</o:p><=
/span></b></p>
<p class=3D"MsoNormal"><a href=3D"http://www.cryoport.com/"><span style=3D"=
font-family:&quot;Arial&quot;,sans-serif;color:#00B3E3;text-decoration:none=
"><img border=3D"0" width=3D"229" height=3D"73" style=3D"width:2.3854in;hei=
ght:.7604in" id=3D"Picture_x0020_4" src=3D"cid:[email protected]=
A0" alt=3D"Blue text on a black background=0A=
=0A=
Description automatically generated"></span></a><b><span style=3D"font-size=
:9.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#373A36;mso-ligatures=
:none"><o:p></o:p></span></b></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Arial&quot;,sans-serif;color:#1B1CDD;mso-ligatures:none">=AD=AD<o:p></o:p>=
</span></b></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Arial&quot;,sans-serif;color:#1B1CDD;mso-ligatures:none">Office:&nbsp;
</span></b><span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,sa=
ns-serif;color:#373A36;mso-ligatures:none">+1 (949) 681-2794<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Arial&quot;,sans-serif;color:#1B1CDD;mso-ligatures:none">24/7/365 Support:=
&nbsp;
</span></b><span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,sa=
ns-serif;color:#373A36;mso-ligatures:none">+1 (949) 470-2305<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif;color:#373A36;mso-ligatures:none"><o:p>&nbsp;</o:p></s=
pan></p>
<p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&quot=
;Arial&quot;,sans-serif;color:#373A36;mso-ligatures:none">Americas
</span></b><b><span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;=
,sans-serif;color:#1B1CDD;mso-ligatures:none">=95</span></b><b><span style=
=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#373A36=
;mso-ligatures:none"> EMEA
</span></b><b><span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;=
,sans-serif;color:#1B1CDD;mso-ligatures:none">=95</span></b><b><span style=
=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#00CBE0=
;mso-ligatures:none">
</span></b><b><span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;=
,sans-serif;color:#373A36;mso-ligatures:none">APAC<o:p></o:p></span></b></p=
>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif;mso-ligatures:none"><a href=3D"http://cryoport.com/"><b><span style=
=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#0563C1=
">cryoport.com</span></b></a></span><b><span style=3D"font-size:10.0pt;font=
-family:&quot;Arial&quot;,sans-serif;color:#373A36;mso-ligatures:none"><o:p=
></o:p></span></b></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif;color:#777877;mso-ligatures:none"><o:p>&nbsp;</o:p></s=
pan></p>
<p class=3D"MsoNormal"><a href=3D"https://www.linkedin.com/company/856887">=
<span style=3D"font-family:&quot;Arial&quot;,sans-serif;color:#99999A;text-=
decoration:none"><img border=3D"0" width=3D"33" height=3D"33" style=3D"widt=
h:.3437in;height:.3437in" id=3D"Picture_x0020_3" src=3D"cid:image002.png@01=
DAC710.5EF3EFA0" alt=3D"A blue circle with white and black logo=0A=
=0A=
Description automatically generated"></span></a><a href=3D"https://twitter.=
com/cryoport"><span style=3D"font-family:&quot;Arial&quot;,sans-serif;color=
:#00B3E3;text-decoration:none"><img border=3D"0" width=3D"33" height=3D"33"=
 style=3D"width:.3437in;height:.3437in" id=3D"Picture_x0020_2" src=3D"cid:i=
[email protected]" alt=3D"A blue circle with white x in it=0A=
=0A=
Description automatically generated"></span></a><span style=3D"font-family:=
&quot;Arial&quot;,sans-serif;color:#00B3E3;mso-ligatures:none">&nbsp;</span=
><a href=3D"https://www.youtube.com/user/CryoportVideo"><span style=3D"font=
-family:&quot;Arial&quot;,sans-serif;color:#00B3E3;text-decoration:none"><i=
mg border=3D"0" width=3D"32" height=3D"32" style=3D"width:.3333in;height:.3=
333in" id=3D"Picture_x0020_1" src=3D"cid:[email protected]" al=
t=3D"A blue circle with a white play button=0A=
=0A=
Description automatically generated"></span></a><span style=3D"font-size:12=
.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#00B3E3;mso-ligatures:n=
one"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ar=
ial&quot;,sans-serif;color:#777877;mso-ligatures:none">=AD=AD<o:p></o:p></s=
pan></p>
<p class=3D"MsoNormal"><span style=3D"font-size:9.0pt;font-family:&quot;Ari=
al&quot;,sans-serif;color:black;mso-ligatures:none">The information contain=
ed in this e-mail message is privileged and confidential information and is=
 intended only for the use of the individual and/or
 entity identified in the address of this message. If the reader of this me=
ssage is not the intended recipient, or an employee or agent responsible to=
 deliver it to the intended recipient, you are hereby notified that any dis=
closure, copying, distribution,
 or reliance upon the contents of this email is strictly prohibited. If you=
 have received this communication in error, please notify us by return e-ma=
il. In this circumstance, we request that you delete the original message f=
rom your system.<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_LV8PR17MB713541F0685AEC0013D43AA2AED52LV8PR17MB7135namp_--

--_007_LV8PR17MB713541F0685AEC0013D43AA2AED52LV8PR17MB7135namp_--