<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana><FONT size=2>A question&nbsp;<SPAN 
class=800431916-21042009>regarding </SPAN>MapServer Query 
Templates.<BR><BR><SPAN class=800431916-21042009>Is there away to </SPAN>put 
conditions into a MapServer query template (when you click on a feature, send a 
wfs request and&nbsp;<SPAN class=800431916-21042009>attempt </SPAN>to format the 
results)<SPAN class=800431916-21042009>?</SPAN><BR><BR>My template looks like 
this<SPAN class=800431916-21042009>:</SPAN><BR><BR>&lt;table<SPAN 
class=800431916-21042009>&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;td&gt;Installer: 
&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;td&gt;[installer]&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/tr&gt;<BR>&lt;/table&gt;<BR><BR>What I would like to do is only show the 
installer&nbsp;<SPAN class=800431916-21042009>ROW </SPAN>if the 
installer&nbsp;<SPAN class=800431916-21042009>result info </SPAN>is&nbsp;<SPAN 
class=800431916-21042009>not empty.&nbsp; </SPAN>So I'd like to wrap it 
in&nbsp;<SPAN class=800431916-21042009>some type of</SPAN>&nbsp;IF 
statement.&nbsp;&nbsp;<SPAN class=800431916-21042009>Is it possible to do this 
directly in the query template, or does this need to happen earlier in the 
process?</SPAN></FONT></FONT></DIV>
<DIV><SPAN class=800431916-21042009><FONT face=Verdana 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=800431916-21042009><FONT face=Verdana size=2>A quick note: my 
data is sitting on MySQL (long, lat), being served via MS4W 
2.3.1.</FONT></SPAN></DIV>
<DIV><SPAN class=800431916-21042009><FONT face=Verdana 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=800431916-21042009><FONT face=Verdana 
size=2>Thanks.</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Verdana size=2><STRONG>Grant 
McKenzie</STRONG></FONT></DIV></BODY></HTML>