Use of % in a varible name
Steve Lime
Steve.Lime at DNR.STATE.MN.US
Tue Dec 26 08:04:10 PST 2006
Yes, you can do numerical comparisons. Remember the %foo% indicates a
run-time
substitution and is not actually present when the expression is
processed. A % in
an expression post substitution is a modulus operator that does require
numbers on
each side.
Did the following not work?
EXPRESSION (%foo% gt 5000)
Steve
>>> Dave Potts <dave.potts at PINAN.CO.UK> 12/23/2006 5:59:25 PM >>>
Hi Folks
I know its possible to use the string syntax '%foo%' where is foo is
an input value from a httml <input type="hidden" name="foo"
value="haggis"
is it possible to use a numerical value with the same syntax ?
eg
%foo% lt 50000
where
<input type="hidden" name="foo" value="5000"
Line 326 of mapparser.y( map server 4.10) seems to indicate for
numerical expressions a % is always used as an operator
I am trying to pass a varible in to a cgi version of mapscript and do a
numerical comparsion
From the documntation it appears that saying
expression "[foo]" gt "5000" will not work as expected, is this
correct ?/
Dave.
More information about the MapServer-users
mailing list