The CreatorCon Call for Content is officially open! Get started here.

How to leave 1st If-block and jump into another 2nd if-block after 2 secns

Kishore4321
Tera Contributor

hi All,

We have 5-if blocks 

each If block has 50-lines of code

if(block 1)

{

50 lines

}

if(block 2)

{

50 lines

}

if(block 3)

{

50 lines

}....

..

etc

 

if block 1 would not be executed with in 2-sec, break block 1 loop, directly jump into block2 to execute block 2 code ,
if block 2 would not be executed with in 2-sec, break block 2 loop, directly jump into block 3 to execute block 3 code....etc. like this ... till end.

is this kind of behavior achievable?

 

5 REPLIES 5

I do not believe that there is any viable way to check and interrupt a running script, from within the same script. Possibly you could use flow with multiple paths and timers, but given the platforms architecture\structure I don't think that this would produce repeatable results for the time period you have indicated.