Thank you for your help, I took your advice and as I put if type == 1 || type == 4:
it works now. There are still some thing about this I don't quite understand.
With my code in the question, why it could till run and play the ActiveSlot03 all the time?What is the logic behind that?
I used to use write two comparisons before, but once I tried without it, and found out it still works fine. In fact, in the sam script, I have follow code without any issue when running. So I am a bit confused, but I will stick to two comparisons just to be safe.
if slotSelection == 4 || 5:
animationObject.play("ArrowSwitch")