A help please

i am learning extension development in my case i want the java code of
controls_do_then_return
it is in control built in


the git hub source is written in js,can you specify the right code i need

Extensions can only be made from components. The block in question is a built-in block, so replicating its functionality in an extension isn't possible. The JavaScript for generating YAIL (App Inventor's intermediate language) is under blocklyeditor/src/generators/yail/. The code that is generated is not Java. In the case of the do-result block, it produces the following YAIL:

(begin
  STMT...
  VALUE)

where STMT is the code generated by the content of the do section of the block and VALUE is the result part of the block.

5 Likes

Thanks so i will ask user to put such blocks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.