0

我发现将 count 函数的结果与 for-each 计数器进行比较的问题。我输入了包含多个元素的 XML。我在开始时将 count($PartnerLink1Response.return/Body/Object) 放入 unsignedInt 变量,该变量返回

<temporary-simple-type-wrapper>2.0</temporary-simple-type-wrapper>

我想在 ForEach 循环内将这个值与循环变量 Counter 进行比较,Counter 也是 unsignedInt 但它返回值

<tns:result xmlns:tns="http://wso2.org/bps/sample">2</tns:result>  

If 条件中的这两个值从不匹配。如何比较这两个值以匹配。

我正在使用 WSO2 BPS 3.2.0

4

1 回答 1

1

我发现虽然你无法比较

count($Response2.return/Body/Object) = $Counter

比较

count($Response2.return/Body/Object) - $Counter = 0  

作品

于 2015-08-25T07:42:47.670 回答