How to declare a "global" variable to be used across the script


I want to declare a few variables that could hold a string for example, so that I can just type that variable in any code block without having to type the whole string every time. Is this possible, and if so, how?

Simply, in a code block somewhere…

def st1()
return=“Really long string i don’t want to type each time”;

Then use st1() in the code blocks throughout your script.

Have you looked at the design script language guide here :wink: plenty of good tips in there.

1 Like

Thanks! I should really go through all the design script basics one of these days.