1 = 1 ist just an alternative way of writing (logial) true, i.e. there is no real condition to be met for the EXTRACT, thus returning the complete series.
Maybe there was a "real" condition in the past that became superfluous and the developer (carefully) decided to modify just the condition instead of taking out the whole EXTRACT statement.
Don't know what you mean by "store comments for mercator". You can include comments in rules in a C/C++ fashion, i.e. either single line comments using
// everything in this line following the two slashes is a comment
or multi line comments using
/* everything
between the slash/asterisk
pair is a comment */
Well the documentation I can access doesn't tell anything about the single line comments but just displays the other (6.7.1). Okay, that might also be a definition of "prefered" ;-)
Comments in Map Rules
You can add inline comments to map rules. Comments do not affect how map
rules are evaluated. A comment may appear anywhere in a rule, as long as it does
not separate object names.
A comment is identified with the start characters /*. While the end characters */
can be present, they are not required. If the end characters are not present,
everything up to the end of that rule is the comment.
The following map rule has two comments, which are indicated by blue text:
= EXTRACT (Record:Customers /*Extract the Records */,
State Field:.:Customers = "FL" /* Get only the customers in
Florida */ )
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.