<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Steve,<br>
<br>
&nbsp; I'm really not sure about this, but I think you need to specify the
'oper' parameter, as such :<br>
<br>
<font face="sans-serif" size="2">aszLegendArray[szGroup][nLayerId]["selected"]
=
[if name=layer_status oper=eq value=0]0[/if][if name=layer_status
oper=eq value=1]1[/if][if
name=layer_status oper=eq value=2]1[/if];</font>
<br>
<br>
&nbsp; That's the way all samples in the doc page [1] are displayed.<br>
<br>
HTH,<br>
<br>
Alexandre<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://mapserver.org/output/html_legend.html">http://mapserver.org/output/html_legend.html</a><br>
<br>
<br>
On 10-12-02 09:36 AM, <a class="moz-txt-link-abbreviated" href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a> wrote:
<blockquote
 cite="mid:OF99BBCE57.241B9432-ON852577ED.004D71AC-852577ED.00503A4D@isn.rtss.qc.ca"
 type="cite"><br>
  <font face="sans-serif" size="2">Hi,</font>
  <br>
  <font face="sans-serif" size="2">I'm starting using mode=legend and I
cannot get the proper STATUS value of my layers definition when STATUS
is ON. </font>
  <br>
  <font face="sans-serif" size="2">My mapfile contains 3 layers, one
layer
has STATUS ON, another STATUS DEFAULT and the other STATUS OFF</font>
  <br>
  <br>
  <font face="sans-serif" size="2">In the result of mode=legend I get
layer_status
= 0 for layers having STATUS ON or OFF.</font>
  <br>
  <font face="sans-serif" size="2">I get layer_status = 2 when STATUS =
DEFAULT</font>
  <br>
  <font face="sans-serif" size="2">Here is the line in the template</font>
  <br>
  <font face="sans-serif" size="2">aszLegendArray[szGroup][nLayerId]["selected"]
=
[if name=layer_status value=0]0[/if][if name=layer_status
value=1]1[/if][if
name=layer_status value=2]1[/if];</font>
  <br>
  <font face="sans-serif" size="2"><br>
Should layer_status be equal to 1 when STATUS ON?</font>
  <br>
  <font face="sans-serif" size="2">thanks</font>
  <br>
  <font face="sans-serif" size="2">Steve</font>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Alexandre Dub&eacute;
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>