Using arithmetic operators in conditions

sgilson
Participant V

I want to use an arithmetic operator in a conditional flow, as shown below:

<Step>   
  <Condition>(receive.timestamp - start.timestamp) > 5000</Condition>   
  <Name>raisefault</Name>                 
</Step>

But when I try to save the API Proxy, I get the following error:

Server Error.
For input string: "-"

I thought arithmetic operators were allowed in conditional flows.

Stephen

Solved Solved
0 1 903
1 ACCEPTED SOLUTION

I believe this is an error in the documentation when it says arithmetic operations are supported. It should state that the are not supported (can somebody please correct me if I'm wrong).

Another way to accomplish this might be to do the calculation in a JavaScript callout before this step, save the answer in a variable, and use that variable in the condition.

View solution in original post

1 REPLY 1

I believe this is an error in the documentation when it says arithmetic operations are supported. It should state that the are not supported (can somebody please correct me if I'm wrong).

Another way to accomplish this might be to do the calculation in a JavaScript callout before this step, save the answer in a variable, and use that variable in the condition.