Git Product home page Git Product logo

Comments (4)

aRTy42 avatar aRTy42 commented on June 20, 2024

Thanks

from poe-iteminfo.

4GForce avatar 4GForce commented on June 20, 2024

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

from poe-iteminfo.

aRTy42 avatar aRTy42 commented on June 20, 2024

I was not aware of that either.

from poe-iteminfo.

Eruyome avatar Eruyome commented on June 20, 2024

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.

from poe-iteminfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.