Remove Definitions 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:

<input type="text" size="%vof(size;\rd)" maxlength="20"/>

 

                         ^------------^    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 "size" is empty.

 

Example - 2:

.css1 { font-family:%vof(family = 'Arial' ? \rd ; family); font-weight:bold; }

 

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

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

 

The enclosing definition will be removed if the value of "family" is "Arial".

 

\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:

a:link { 

  color: %vof(link.color;\rl);

  font-style: %vof(link.style;\rl);

  font-weight: %vof(link.weight;\rl); text-decoration:%vof(link.decoration;\rl)

}

 

Assume that the values of "link.style" and "link.decoration" properties are empty and the values of the other properties are "pink" and "bold". With the effect of remove line commands ("\rl") that are used after the "If Empty" operators (";"), the result will be as follows:

a:link { 

  color:pink;  

}