Complex sentence: The tag is removed by a cashier once they have been paid for, and if they aren't, an alarm is set off when the person leaves the store.
Split into simpler sentences: The tag is removed by a cashier once it has been paid for. If the tag is not removed, an alarm is set off when the person leaves the store.