aRTy42 / POE-ItemInfo

Item Info Script for Path of Exile
167 stars 225 forks source link

Its useless but its broken #43

Closed 4GForce closed 7 years ago

4GForce commented 7 years ago

Random find, easy fix. I know the method is not used but it was still broken.

adjustrangeforqualityfix

aRTy42 commented 7 years ago

Thanks

4GForce commented 7 years ago

Well, I realised that it was probably working anyway. I'm new to AutoHotkey and I find it confusing with the mix of c++ and ahk.

The == operator seems to work in ahk scripts but only with parentheses

if 0 ; false ( any language ) if 0 = 0 ; true ( ahk ) if 0 == 0 ; false ( ahk ) if ( 0 = 0 ) ; true ( ahk ) if ( 0 == 0 ) ; true ( c++, but also works in ahk scripts )

At least I'm learning,

4G

aRTy42 commented 7 years ago

I was not aware of that either.

Eruyome commented 7 years ago

I'm easily confused with ahk comparisons, too... The == operator behaves identically to = except when either of the inputs is not a number, in which case == is always case sensitive and = is always case insensitive. Also == is only valid in an expression. In a traditional IF (no parentheses), the second = becomes part of the text to compare.