<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Ah ok I was looking at the mapfile. Passing &YEAR=1976 in from the command line should work fine.<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><br></div><div>Also maybe try with a different parameter name e.g. MYYEAR just in case YEAR is treated differently as it is used for various OGC services. <br></div><div><br></div><div>Seth<br></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 9:50 AM, andy wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div dir="ltr">Hi Seth,<br></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Sun, 6 Feb 2022 at 09:35, Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>> wrote:<br></div><div> <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><div>Shouldn't the variable be wrapped in percentage signs?<br></div><div><br></div><div>EXPRESSION (%year% < 1976)<br></div></div></blockquote><div><br></div><div>my goal is another one. My hardcorded expression is "EXPRESSION ([year] < 1976)".<br></div><div><br></div><div>I want to use run-time substitution to use "EXPRESSION ([year] < <span style="color:rgb(0, 0, 0);white-space:pre-wrap;">'%year%'</span>)", in the same way described here:<br></div><div><a href="https://mapserver.org/el/mapfile/validation.html#test-with-commandline">https://mapserver.org/el/mapfile/validation.html#test-with-commandline</a><br></div><div><br></div><div>Thank you<br></div><div> <br></div></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>