if statement with multiple ... and... does it check all conditions?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rogue_ish
Posts: 6
Joined: 23 Mar 2020, 09:42

if statement with multiple ... and... does it check all conditions?

Post by rogue_ish » 12 Jun 2021, 14:36

I tried googling, etc. but could not find the correct query.

If I have multiple conditions

if (X and Y and Z and etc...)
{
do something
}

Does AHK terminate the if series at the first 'false' it finds?

Tx...


swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: if statement with multiple ... and... does it check all conditions?

Post by swagfag » 12 Jun 2021, 14:50

there are docs, u know
a good first place to look before googling https://www.autohotkey.com/docs/Variables.htm#and

Post Reply

Return to “Ask for Help (v1)”