Remover Commands

Top  Previous  Next

The aim of the remover commands is to simplify the definition of optional parameters, properties or attributes.

 
\rd Definition: (Remove Definition) 
 

Removes the definition that encloses the current function. The enclosing definition is the non-blank characters between the first preceding blank character and the first succeeding blank character.

Example-1:

  UPDATE customers SET A=5, B=@vof(B;\rd), C='XYZ' WHERE ID=45

                              ^---------^    The vof function

                           ^                 The first preceding blank character

                                          ^  The first succeding blank character

                            ^------------^   The enclosing definition

 

The enclosing definition will be removed if the value of the "B" is blank.

 

Example-2:

  <item uid="@vof(UID = -1 ? \rd ; UID)" >

             ^------------------------^    The vof function

        ^------------------------------^   The enclosing definition

 

The enclosing definition will be removed if the value of UID equals to -1.

 
 

\rl Definition: (Remove the current Line)

When a \rl remover command is encountered, then the line that the current function resides is completely removed from the output.

Example:

  <soap:Body>
    <City>@vof(City;\rl)</City>
    <ZipCode>@vof(ZipCode;\rl)</ZipCode>
    <Street>@vof(Street;\rl)</Street>
  </soap:Body>

 

Assume that there is no value for ZipCode and Street. Also assume that the value for the City is "Newyork".
The result will be;

  <soap:Body>
    <City>Newyork</City>
  </soap:Body>