How to declare Editor variables?

I’ll call them “Editor variables”, because I don’t know their official name, but basically I want to replace this:

#if (true)
//the new version of the function
#else
//the old version of the function
#endif

with this:

#if MY_EDITOR_VARIABLE
//the new version of the function
#else
//the old version of the function
#endif

How/where do I declare the MY_EDITOR_VARIABLE?

is how you setup custom ones, and on this page is where you can see the builtin ones

3 Likes

Thanks :slight_smile:
It’s hard to look for stuff when you don’t know how they are actually called :stuck_out_tongue:
(try searching for a song, just knowing its melody :smile:)

Yeah i been programming professorially for 15 years and still hit that problem once and a while, what forums and co workers are good for since 90% of the time its a google this term or here is a doc page.

Also as someone who has played guitar for most of my life but was self taught getting tons of those moments going back and properly teaching myself music theory, “oh thats the name of the thing i been doing”