Jump to content

Logical Operators in AutoIt?

Recommended Posts

I am deeply sorry if this is in the AutoIt Help File, but I skimmed through it and did not find anything on it, so I decided to trek here and ask with the risk of losing dignity.

Are the logical operators present in AutoIt? I need to use the && (and) operand in my script, otherwise it will be completely useless so if someone could please tell me if they are included in the AutoIt language, and how to use them, or a pointer to where they would be in the Help File. Thanks in advance.

Link to post
Share on other sites
  • 8 years later...

just curiosity what mix up you in not finding in the help the first time? :lmao:

I decided to answer this question myself since I had problems getting NOT function info too.

For me, I assumed that NOT was in AutoIt but wanted to make sure. In SCITe editor I typed NOT, saw the Scite indication it was part of the language, highlighted NOT, hit F1, and was not taken to the NOT function but the introduction to HELP files.

Index list on left did not show NOT.

Search term NOT did not find it.

Looked at Function lists, expanded a few possible locations for NOT function, did not find it.

Opened internet explorer, googled "autoit logical function NOT" and found this old posting.

Finally did find it in the table I found when used help key word "operator" search. My problem is I was thinking of it as a function, not operator.

My guess is that the search function in help can't handle the three letter search term well, and the NOT (and AND) links from Scite do not go to the right place.

Link to post
Share on other sites

Please do not necro a thread that is more than 8 years old :naughty:

Keyword "Not" is not in the Index. That's why you get the introduction page. If you use the search function you are not successful because "Not" is a keyword for the search function.

My UDFs and Tutorials:


Active Directory (NEW 2021-06-05 - Version - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version - Download
Outlook Tools (2019-07-22 - Version - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version - Download - General Help & Support - Example Scripts
PowerPoint (NEW 2021-07-28 - Version - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version - Download - General Help & Support - Wiki

ADO - Wiki, WebDriver - Wiki


Link to post
Share on other sites

Can you guys believe i didn't notice how old thread is until you pointed that out? lol

And yeah, i usually just search for operators

Edited by careca

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples


Link to post
Share on other sites
  • Moderators


I can understand this happening once, but please do not do anything as stupid as this in future. :bonk:


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...