return
BlockLogic
Return outputs from the current custom block and stop executing it.
- Its inputs and outputs are the ones defined by the custom block it runs.
Build a bot using blocks like Return
Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode.
ID:
return_from_custom_block- Takes the custom block's inputs/outputs as
Argskeys. See custom blocks.
Example InventScript
More logic blocks
Run LaterRun a custom block at a later time, like in 10 minutes or 3 days. Its inputs are saved when it's scheduled.Cancel Scheduled RunCancel a run scheduled with Run Later, by its key.Get Scheduled RunCheck whether a run is scheduled with a key, and when it runs.CooldownLet the rest of the flow run once per key for a set time. While the key is on cooldown, the blocks inside run instead and the flow stops.LoopRun the nested blocks a fixed number of times.While LoopRepeat blocks while a condition is true.If StatementCompare two values and run different blocks based on the result.Advanced ConditionalRun different blocks based on grouped comparisons.Conditional ValueCompare two values and output one of two values based on the result.FolderOrganize blocks into a folder. Creates a variable scope.BreakStop the current loop and continue with the blocks after it.ContinueSkip the rest of this loop iteration and move to the next one.Exit FlowStop the entire flow immediately. No further blocks will run.Call Custom BlockCall a custom block and use its returned outputs.