Skip to main content

Array value exists

XML
<array:valueexists var="var" var_result="var">
string
</array:valueexists>

<array:valueexists /> checks whether a value exists within an array.

Attributes

NameTypeDescriptionDefined By
varvarVariable name array:valueexists
var_resultvarResult variable name array:valueexists

Results

BindingTypePredicate
var_resultboolN/A

Examples

XML
<array var="names">
<item>Bill Gates</item>
<item>Steve Jobs</item>
</array>

<array:valueexists var="names" var_result="exists">Steve Jobs</array:valueexists>

<is var="exists" type="true">
<output>Value exists!</output>
</is>

<!-- Value exists! -->