Complex sentence: The character's role in Liangshan if he/she is a Liangshan outlaw or the title (eg. General, Inspector) if the character's a from the Imperial Court.
Split into simpler sentences: The character's role in Liangshan if he/she is a Liangshan outlaw. The title (eg. General, Inspector) if the character's from the Imperial Court.