Using A Variable Like If/Else Statement - VisualCron - Forum

Community forum

omer.karaca
2019-12-09T06:14:11Z
Hi There,

I have a job. My has a logic statement in itself. I define a variable in my job and assign a 0 value to it. After doing it, i run a task. If task result is okay, i change the variable value to 1. After that, i check the variable status. If variable is still 0, i run a different task but if it is not and 1, i run another different following task. My general logic of my job is like this. You can find my job in the picture. But, there is an issue of working this logic. It never works correctly. How can i use a variable like if/else statement?

  img.PNG (261kb) downloaded 17 time(s).
ErikC
2019-12-09T07:54:53Z
Hi Omer,

What you are telling the flow is that the 'On success' only happens if the OKMessageNotSend = 0
I see an On Error as seccond flow item, so I think the job stops here when the OKMessageNotSend <> 0
I think you need a second on succes with the OKMessageNotSend = 1 and specify which task to run.

regards
Erik

Uses Visualcron since 2006.
Scroll to Top