<ignore>

<ignore> encases code in a Macro Language query that should not be executed by the system.

Description

The <ignore> element encapsulates code that should not be run as part of a query submitted on the 1010data Insights Platform. It is similar to commenting out code in other languages. To use the keyboard shortcut, highlight the Macro Language code to ignore and press Ctrl+/ (PC) or Command +/ (Mac).

<ignore> is the preferred method for adding comments to your Macro Language code. Alternatively, you may use XML comments, with the syntax <!--Your comment-->. Using <note> for comments may have unintended consequences.

Syntax

<ignore>
  [COMMENT_CONTENTS]>
</ignore>

Example

In the following example, the <ignore> element and its contents will not be run when the query is submitted.

<base table="pub.demo.retail.item"/>
<willbe name="gross_margin" value="sales-cost"/>
<ignore>
  <sel value="store=1"/>
</ignore>