To switch teams use a team switcher but you could have all items stored in a property and compare them using blocks