Not sure why it says there's no loop here, any ideas?
Code:
function removeEnch(i: item, e: enchantment):
loop enchantments of {_i}:
add "%loop-value% %level of loop-value of {_i}%" parsed as an enchantment type to {_e::*}
disenchant {_i}
loop {_e::*}:
if "%loop-value%" does not contain "%{_e}%":