How to use enviroment variables


can someone tells me how I have to use enviroment variables? How is the syntax?
Have I use it in my main or render process?

Have I set it like normal variables like var ELECTRON_IS_DEV = 1; or how I have?
Sorry but all documentaries I found are really basic. Too much basic for me.