Started by
BaRiBoD
on
Topic category: Plugins and third-party tools
How can I use a variable taken from a block in the procedure in the condition of an if statement?
<#if input$key>System.out.println("Hello")<#else>System.out.println("Bye")</#if>;
key type's is boolean
Edited by BaRiBoD on Mon, 03/11/2024 - 12:59
The procedure block is generated in a different template than a block so this may not be possible
you can do w.getWorkspace().getModElementByName("Block name").getGeneratableElement() but it's pretty inefficient to do for every procedure block.