-
Notifications
You must be signed in to change notification settings - Fork 1
Blocks
Ian edited this page Nov 27, 2023
·
2 revisions
Blocks are a means to define a function or set of commands within a command, they can be given a name and can accept macro arguments after the opening curly bracket which will be appended to the function call.
block [name] { [data] ... }
ex.
function example{
block example_block {
say named block
}
block {
say unnamed block
}
block another_example { with some data
say named block2
}
block { with some data
say unnamed block2
}
}