Page 1 of 1

"It Then" not working after update

Posted: Mon May 11, 2015 10:30 am
by rice1973
Hi Oleg,

The conditions in the task below don't work anymore after update.

So when sunday is <= 8 days from begin of month an => 23 day of the month the task "__Stock.csv__" must run.
But it also runned on 10 day (sunday 10-5)

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1431715566
Comment=STRINGLIST
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task32"
Hide=INTEGER|0
ID=INTEGER|90973483
LogOnAsUser=INTEGER|1
Name=STRING|"koopzondag stock 1e en laatste koopzondag shedule"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER

[Actions\Action1]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action1\Params]
case=STRING|"0"
operator=STRING|"4"
type=STRING|"0"
value1=STRING|"{Day}"
value2=STRING|"8"

[Actions\Action2]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""__Stock.csv__"""
Params=FOLDER

[Actions\Action2\Params]
parametercount=STRING|"0"
taskid=STRING|"912874162"
wait=STRING|"1"

[Actions\Action3]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action4]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action4\Params]
case=STRING|"0"
operator=STRING|"2"
type=STRING|"0"
value1=STRING|"{Day}"
value2=STRING|"23"

[Actions\Action5]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""__Stock.csv__"""
Params=FOLDER

[Actions\Action5\Params]
parametercount=STRING|"0"
taskid=STRING|"912874162"
wait=STRING|"1"

[Actions\Action6]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Events]
Event1=FOLDER
Event2=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_SHEDULER"
Params=FOLDER
UnigueID=INTEGER|56272592

[Events\Event1\Params]
periodicity=STRING|"1"
periodparameter=STRING|"1000000"
startdate=STRING|"41399"
time0=STRING|"43534000"
time1=STRING|"47100000"
time2=STRING|"50700000"
time3=STRING|"54300000"
time4=STRING|"57900000"
time5=STRING|"61500000"
time6=STRING|"62400000"
timecount=STRING|"7"
wakeup=STRING|"0"

[Events\Event2]
Enabled=INTEGER|0
EventID=STRING|"E_GENERAL_SHEDULER"
Params=FOLDER
UnigueID=INTEGER|156025874

[Events\Event2\Params]
id=STRING|"UH6G1CTU"
periodicity=STRING|"2"
periodparameter=STRING|"00000000000000000000001000000000"
startdate=STRING|"41612"
time0=STRING|"47100000"
time1=STRING|"50700000"
time2=STRING|"54300000"
time3=STRING|"57900000"
time4=STRING|"61500000"
time5=STRING|"65100000"
timecount=STRING|"6"

Re: "It Then" not working after update

Posted: Mon May 11, 2015 11:23 am
by Oleg
You have to compare days AS NUMBERS
See screenshot
asnumber.png
asnumber.png (43.38 KiB) Viewed 12144 times
You configured the comparison "As String"
The string "8" is greater than string "23". But number 8 is less than number 23

Re: "It Then" not working after update

Posted: Mon May 11, 2015 3:56 pm
by rice1973
Thank you!