Skip to content

AspBlock.Index

property · AspBlock · cAlgo.API

DesktopCLICloud

Get index of current block.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

int Index {get; set;}
aspBlock.Index: int

Returns int

Examples

var block = Asp.SymbolTab.AddBlock("My Block");
Print("Block index: {0}", block.Index);
block = api.Asp.SymbolTab.AddBlock("My Block")
api.Print(f"Block index: {block.Index}")