Complex sentence: For a left action "h" acts first and is followed by "g", while for a right action "g" acts first and is followed by "h".
Split into simpler sentences: For a left action, "h" acts first and is followed by "g". While, for a right action, "g" acts first and is followed by "h".