So im trying to make a skript where u have to confirm with typing YES/NO in chat. But somehow its running the else: when im typing YES/NO. I cant find why its doing that. Ty for reading 
code_language.skript:
if {Reaction::other::ClearYN::%player%} is true:
if message = "YES":
loop {Reaction::words::*}:
remove loop-value from {Reaction::words::*}
set {Reaction::other::ClearYN::%player%} to false
message "&3Reaction>&8 &7Succesfully deleted all words!"
cancel event
stop
if message = "NO":
message "&3Reaction>&8 &7Succesfully Canceled to delete all words!"
set {Reaction::Other::ClearYN::%player%} to false
cancel event
stop
else:
cancel event
message "&3Reaction>&8 &7Are u sure to delete &4ALL&7 words from the list?! Type &eYES &7or &eNO&7!"