StringMatch
 
Description

Allows you to replace the ImportFieldOpApplyTo<N> field value with a new value depending on whether it does or does not match a specific value. Use ImportFieldOpParam<N> as follows to determine which value replaces the ImportFieldOpApplyTo<N> field value:

ImportFieldOpParam<N>=<value>,<match_replacement>,<no_match_replacement>


<value>
Enter a string using the format "<string>", or the name of a field using the format Fname<field_name>.
If the value in the ImportFieldOpApplyTo<N> field matches this value, it is replaced with the specified <match_replacement> value. If it does not macth this value, it is replaced with the <no_match_replacement> value.


<match_replacement>
Enter a string using the format "<string>", or the name of a field using the format Fname<field_name>.
If the value in the ImportFieldOpApplyTo<N> field matches the specified <value>, it is replaced with the <match_replacement> value.


<no_match_replacement>
Enter a string using the format "<string>", or the name of a field using the format Fname<field_name>.
If the value in the ImportFieldOpApplyTo<N> field does not match the specified <value>, it is replaced with the <no_match_replacement> value.


Example

ImportFieldOpApplyTo0=Animal
ImportFieldOp0=StringMatch
ImportFieldOpParam0="elephant";"jumbo";"hippo"

In this example, if the Animal field value is elephant, the field is imported with the value jumbo. If the Animal field value is not elephant, it is imported with the value hippo.


ImportFieldOpApplyTo0=Animal
ImportFieldOp0=StringMatch
ImportFieldOpParam0=FnameMyFavoriteAnimal;"jumbo";FnameAnotherAnimal

In this example, if the Animal field value matches the value in the MyFavoriteAnimal field, it is imported with the value jumbo. If the Animal field value does not match the value in the MyFavoriteAnimal field, it is imported with the value of the AnotherAnimal field.