Skip to content

Conversation

@marktohark
Copy link

1

<block type="local_declaration_expression"></block>

the block should be enabled in Variables category.

@mark-friedman
Copy link
Collaborator

@marktohark I'm taking a look at this. I'm sorry it has taken so long for me to get around to it.

@mark-friedman
Copy link
Collaborator

mark-friedman commented Feb 3, 2023

The expected way to express something like what you were trying to do is:

Screenshot 2023-02-03 at 3 20 11 PM

Unfortunately, that block (the local_declaration_expression block) isn't documented in the README file because it is incomplete; the generator was not implemented. I will implement that and add it to the README file.

It's also possible that you intended to allow for additional statements before your return block. In that case, one way to do that is as follows:

Screenshot 2023-02-03 at 3 36 28 PM

That 'controls_do_then_return' block is also missing its generator and is not documented in the README file. I will fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants