N1 Service Provisioning System 4.1 Reference Guide

equals Boolean Operator

A boolean operator used to determine if a particular value is equal to another value. It contains attributes "value1", "value2" and "exact", and has no child elements. It evaluates to true if and only if the values of the "value1" and "value2" attribute are equal. If "exact" is true, then they must be case-sensitive equals, otherwise they must be case-insensitive equals.


Note –

<istrue value="..."/> is a syntactic shorthand for <equals value1="..." value2="true"/>.


equals Boolean Operator Attributes

Name 

Type 

Required 

Configurable 

Description 

value1 

string 

Yes 

Yes 

A value to be compared.  

value2 

string 

Yes 

Yes 

The other value to be compared. 

exact 

boolean 

No 

No 

True if a case-sensitive match should be performed, false otherwise. Defaults to false. 

equals Boolean Operator Examples

Element 

Result 

<equals value1="True" value2="true"/> 

true 

<equals value1="True" value2="true" exact="true"/> 

false 

<equals value1="apple" value2="apple" exact="true"/> 

true 

<equals value1="apple" value2="orange"/> 

false 

<equals value1=":[var1]" value2=":[var2]"/> 

true if the value of var1 is equal to the value of var2.