Similar

Evaluates if op1 and op2 are within the tolerance level of similarity that is desired for these two pieces of data. The value of tolerance can be expressed like so:


  50%      - op1 is at least 50% similar to op2
  0.15     - op1 is at least 15% similar to op2
 

The actual similarity is calculated based on how many bytes are actually the same between the two pieces of data. There is no attempt to calculate if the data has been shifted and therefore the comparison is a direct position to position comparison.

Required Attributes
op1
Identifies the first operand of a conditional tag.
op2
Identifies the second operand of a conditional tag.
value
Usage Examples
Example #1
<if>
   
<similar op1="AAAAAAA" op2="AAAAAAB" value="15%" />
   
<else>
      
<fail>The average value is more than 5% off from previous value</fail>
   
</else>
</if>