Page 1 of 1

conditional delay is not working

Posted: Wed Jul 06, 2016 2:43 pm
by suncds
I've profiled a delay in my project, to be conditionally executed on the following:

(${index} lt 3) and ('{$transferError}' eq '1')

When I place the project in debug mode, and review the variables, just before the delay,

transferError = '1'
index = 1

(index is a counter defined in a for loop, advanced tab)

A partial transcript of the log follows:

Jul 6, 2016 3:39:47 PM INFO Setting value of variable 'transferError' to ''1''

Jul 6, 2016 3:39:54 PM INFO Skipping task 'delay' as the condition "(${index} lt 3) and ('{$transferError}' eq '1')" was not met

Jul 6, 2016 3:40:01 PM INFO Executing task 'setVariable 2.0'

Jul 6, 2016 3:40:01 PM WARN Variable 'transferError' was replaced with ''0''.


Any ideas of what I may be missing?

Re: conditional delay is not working

Posted: Wed Jul 13, 2016 4:33 pm
by Support_Rick
suncds,

Please look at the formatting of your condition. Change this:

(${index} lt 3) and ('{$transferError}' eq '1')

to this:

${ (index lt 3) and ( contains( transferError, '1' ) }

and try again.