How to main a condition block?


I want to make a while block, but I don’t know how to main the block inside my condition block. Can someone help me?

I tried
async (args, app, device, block) => {
while (block.arguments.bool) {
await app.workspace.runBlocks(;

but the code inside isn’t executed and the boolean is’nt updated