Search squid archive

ESI choose/when statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux