[squid-users] ESI choose/when statement

From: Paras Fadte <plfgoa@dont-contact.us>
Date: Tue, 11 Mar 2008 21:08:07 +0530

Hi,

 I have an html page with following ESI code

 <esi:assign name="number" value="100"/>
 <esi:vars>
 This is $(number) On $(HTTP_HOST)
 <esi:choose>
 <esi:when test="$(number)==100">
 And I am in "when"
 </esi:when>
 <esi:otherwise>
 I am in "Otherwise"
 </esi:otherwise>
 </esi:choose>
 </esi:vars>

 The problem that I encounter is that it does't seem to execute
 <esi:when test="$(number)==100"> statement correctly since it
evaluates $(number) as a variable whose value is unknown as a result
of which the othweise tag is executed. But strangely it does print
the value of "number" variable in the statement
 "This is $(number) On $(HTTP_HOST)" correctly . What could be wrong ?

 Please help and thanks in advance.

 -plf
Received on Tue Mar 11 2008 - 09:38:11 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT