How would I have the code see if a particle was touching two different elements at the same time? For example, hydrogen touching both oxygen and spark.
No, I wanted to put in electrolysis. Hydrogen, Oxygen, and Spark touch to make water. And water+spark = hydrogen and oxygen. The latter I know how to do.
Oh. I figured it out. Put one if statement to check for the first element, then put another if statement inside of the first to check for the second. EDIT: this doesn't work