[Mapserver-users] nested ifs

Martin, Daniel DMartin at erac.com
Thu Feb 27 16:37:47 PST 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C2DEC1.9DE61210
Content-Type: text/plain;
	charset="iso-8859-1"

I've attached an example legend template that I use.  It has nested ifs, and
they definitely work.

-Dan

-----Original Message-----
From: Paul Dymecki [mailto:millardymecki at sympatico.ca]
Sent: Thursday, February 27, 2003 6:27 PM
To: Mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] nested ifs


Hi,
    I was wondering if anyone has successfully used nested [if] statements
in a template file?  The documentation says it's supported but so far i'm
not for me.
thx,
Paul


------_=_NextPart_000_01C2DEC1.9DE61210
Content-Type: text/html;
	name="checkBox_legend.html"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="checkBox_legend.html"

   [leg_layer_html opt_flag=3D2 order_metadata=3Dlegend_order]
          [if name=3Dlayer_status oper=3Dneq value=3D2]
           <input title=3D"Click here to turn the [leg_layer_name] =
layer [if name=3Dlayer_status oper=3Dneq value=3D0]off[/if][if =
name=3Dlayer_status oper=3Deq value=3D0]on[/if]" type=3Dcheckbox =
name=3Dlayer value=3D"[leg_layer_name]" [if name=3Dlayer_status =
oper=3Dneq value=3D0]CHECKED[/if] onClick=3D"submitMapserv();">
					[/if]
   [/leg_layer_html]

   [leg_class_html opt_flag=3D2]	 =20
				</TD>
				<TD>
           <img src=3D"[leg_icon]" border=3D0>
				</TD>
				<td> </td>
				<TD>	=20
					 <font face=3D"arial" size=3D2>[leg_class_name]</font>
				</TD>
		</TR>
		<TR><TD>
   [/leg_class_html]


------_=_NextPart_000_01C2DEC1.9DE61210--



More information about the MapServer-users mailing list