PageViews: 42,632 hits / 329 nets
home updates download manual documents feedback search ITS more
DeleGateIcon

Reference Manual of DeleGate

SIMPLE PLAIN SHTML
DeleGate reference manual version 9.9 / Composite operators
[CTX] [ALL] Composite operators

COMPOSITE OPERATORS ( &, |, ! )
As explained above, the meaning of a comma (,) in HostList like "A,B" is not AND nor OR. Operators like AND, OR and NOT operators are provided as a special member of a list.

"&"
AND operator used as "hostList=A,&,B" where when A turn to be false, the hostList as a whole turns to be false without evaluating B. Otherwise B must be true to be true as a whole.
"|"
OR operator used as "hostList=A,|,B" where when A turns to be true, the hostList as a whole turns to be true without evaluating B. Otherwise B must be true to be true as a whole.
"!"
NOT operator used as "A,!,B" where the result of A is negated, and succeed evaluation of B if it exists.

Example:

    PERMIT="*:*:-T.9-16,&,hostList1" PERMIT="*:*:-T.17-8,&,hostList2"
    // the same meaning with the above example.