returns position of compound in X array, -1 if not present
function compoundsIndex input String name; input Boolean caseSensitive = false; output Integer index "position of substance in i X array, -1 if not present"; end compoundsIndex;