<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>So does the following also work? Without quotes should mean it is treated as a number:<br></div><div><br></div><div>EXPRESSION ([year] = %year%)</div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Sun, Feb 6, 2022, at 10:28 AM, andy wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div dir="ltr"><div>Hi Seth,<br></div><div>and thank you.<br></div></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Sun, 6 Feb 2022 at 10:08, Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div><u></u><br></div><div><div><br></div><div>Maybe the value is being treated as a string, so you could test if the following worked (equals rather than less than):<br></div><div><br></div><div>EXPRESSION ("[year]" = "%year%")<br></div></div></blockquote><div><br></div><div>This works, but there are some points that seem strange to me:<br></div><div><br></div><div>- if in the map file I set "[year] < 1976", it works. Than year is a number;<br></div><div>- my layer source is a virtual file, a CSV, in which I set "<Field name="year" src="year" type="integer"/>"<br></div><div><br></div><div>So why do I have to set it as a string, if it is already set as a number and if it works as a number when I do not use run-time substitution? <br></div><div>My files are in this compressed one:<br></div><div><a href="https://github.com/aborruso/blackboard/blob/gh-pages/trash/processing.7z">https://github.com/aborruso/blackboard/blob/gh-pages/trash/processing.7z</a><br></div><div><br></div><div>Best regards<br></div></div><div><br></div><div>-- <br></div><div dir="ltr" class="qt-gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style=""><span class="size" style="font-size:small;">___________________</span></span><br></div><div dir="ltr"><span style=""><span class="size" style="font-size:small;"></span></span><br></div><div dir="ltr"><div>Andrea Borruso<br></div><div> website: <a href="https://medium.com/tantotanto" target="_blank">https://medium.com/tantotanto</a><br></div><div>38° 7' 48" N, 13° 21' 9" E, EPSG:4326<br></div><div><span style=""><span class="size" style="font-size:small;">___________________</span></span><br></div><div> <br></div><div> "cercare e saper riconoscere chi e cosa,<br></div><div>  in mezzo all’inferno, non è inferno, <br></div><div> e farlo durare, e dargli spazio"<br></div><div> <br></div><div> Italo Calvino<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div></body></html>