if-operation

Performs a test on the name of the current operation. The type of test performed depends on the operator specified by the op attribute. The following table shows the type of test performed by each operator.

Remarks

Operator

Returns true when...

equal

The name of the current operation is exactly equal to content of <if-operation>. Supports variable expansion.

lt

The name of the current operation is less than content of the condition when compared using the specified comparison mode. Supports variable expansion.

gt

The name of the current operation is greater than content of the condition when compared using the specified comparison mode. Supports variable expansion.

not-equal

Equal returns false.

not-lt

Less than returns false.

not-gt

Greater than returns false.

Example

<if-operation op="equal">add</if-operation>

Allowed Content

#PCDATA

Attributes

Attribute

Possible Values

Default Value

disabled

true | false

True if this element is disabled.

false

mode

case| nocase | regex | scr-dn |

dest-dn | numeric | octet

Comparison mode if op implies a comparison.

case

notrace

true | false

True if this element should not be traced during execution of the policy.

false

op

equal | lt | gt | not-equal | not-lt | not-gt

Test operator.

#REQUIRED

Content Rule

( #PCDATA )

Parent Elements

Element

Description

and

Logical conjunction.

or

Logical disjunction.