How to make a fabricator run on gas or electricity

I’ve also found the select function useful to keep down the number of variables
(best found by dragging off the “use string”)