When creating a custom block (either standard or global) to perform some basic calculation, the return block doesn't snap into place if it's the first or only thing needed. Trying to encapsulate some trig functionality where the whole calculation can be done in the return value. The custom block is set to return a number, and the calculation returns a number.
Need to place some sort of code first inside the custom block, then the return will snap in after it.
As a workaround, can assign the calculation result to an unnecessary attribute first, then return the attribute, or need to add a useless "if false" check which hopefully gets optimized out at compile time, then insert the return with the calculation below it.
See attached screenshots.