Still you need to change the ternary statement from:
Return @error ? @error : 0
to just
Return @error
as pointed out by @Nine.
Not because it doesn’t work, but because it does work.
And therefore you might use it all the time, out of habit.
Next thing you know, you become a highly regarded AutoIt influencer.
Pretty soon everybody’s using the subz error return method just to mess with the noobs.
On second thought, just leave it