Wait/pause until next step

Is it possible to make Scriptable pause before doing the next step of execution?

What I’m trying to do is, for instance, log(1) and after five seconds, log(2)

Take a look at Timer.

https://docs.scriptable.app/timer

Couldn’t make it works :confused:

function logBar()
{
  console.log("bar")
}

console.log("foo")
let tm = new Timer()
tm.timeInterval = 5000
tm.schedule(logBar)
1 Like

Thank you so much! :slight_smile: