varne

Purpose

Feature-based matching. Match if the given nodes have a variable called varName whose value doe not equal the string or number in the second argument.

Syntax

<fromRuleEltNumber,toRuleEltNumber>varne(varName,numOrString);

fromRuleEltNumber - type: int
toRuleEltNumber - type: int
varName - type: string
numOrString - type: int or string

Returns

Remarks

Example

# The example counts nouns with variable called "number" whose value is not "plural".
@PRE
<1,1> varne("number","plural");
@POST
++G("count nonplural nouns");
@RULES
_xNIL <-
 _noun
@@

See Also

var, varz, vareq, PRE Actions