Repeat task

How can i make my BT task repeat, when it fails? I want to make a task, which will check a boolean variable of an object to be true, and then continue.