How to make a fabricator run on gas or electricity

There needs to be a kill switch before the initial switch to change from gas to electric as it bugs out… I found if left on while switching from gas to electric or vise versa it breaks…

Edit It however works as intended for testing and tutorial purposes… I think this is meant as a guide to get you started on your graph not as a completed mod.