Delayed If statements

I am relatively new to gdevelop. And I don’t know how to do this:

I want to do an if statement that if true, waits for a certain amount of time, and if still true after that time executes the event. If anyone would know how to do this it would be super helpful, Thanks!

You can use a timer; either scene or object depending on your need.

if true then start timer
if true and timer > seconds then do something
if false then delete timer

This uses the space button