Code blocks in dynamo

the first which is my own, goes red after i have finished the specific coding which i replicated from the youtube video (second image). how do i get rid of the list in the code block of numbers down the side and get the n m p in?

I recommend the following to help…
https://primer.dynamobim.org/07_Code-Block/7_Code-Blocks-and-Design-Script.html

The light grey number is just the line number inside the code block and not a part of the actual code. I assume the video was made using an earlier version of Dynamo before those line numbers were added. So, you’re letter ‘u’ is on the 1st line of code inside your code block.

If you add a variable and don’t define it, it becomes an input. Example below with a, b, c…on the 1st, 2nd, and 3rd lines of code within the code block.

I hope this helps.

code

1 Like

@grace.mclelland click on Dynamo>Preferences and turn off Show CodeBlocknode Line Numbers;
Write Math as DSCore.Math.Cos, I suggest to Node to Code any node in Dynamo to get the right DS line of code:

Thank you very much!

1 Like

wonderful thank you very much!

1 Like