Opened 18 years ago

Closed 18 years ago

#1830 closed enhancement (duplicate)

Test if runtime variable is defined

Reported by: bugzilla@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: unspecified
Severity: minor Keywords:
Cc:

Description

I wish it were possible to have an EXPRESSION to test if a variable is defined.

I would like to be able to test this:

EXPRESSION (defined '%key%')

or

EXPRESSION ('%key%' != NULL)

The problem is that %key% is not replaced in case no 'key' is passed through
query_string, and you get a literal '%key%' string in your expression instead of
a null value.


I found a workaround for this:

EXPRESSION (('%key%' lt '%key$' or '%key%' gt '%key

Change History (1)

comment:1 by bugzilla@…, 18 years ago

Resolution: duplicate
Status: newclosed

*** This bug has been marked as a duplicate of 1829 ***
Note: See TracTickets for help on using tickets.