OneManPen Posted December 2, 2011 Posted December 2, 2011 I searched the help file far and wide but I can't seem to find a way to do a not equal command, in batch it would be preformed: if not %variable%==%variable% <command> thenor if %variable% != %variable% <command>If there is no command to do this is there a way around it? Thanks in advance
water Posted December 2, 2011 Posted December 2, 2011 (edited) If $variableA <> $variableB Then ...The relevant docu can be found here. Edited December 2, 2011 by water GoogleGonnaSaveUs 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
OneManPen Posted December 2, 2011 Author Posted December 2, 2011 Oh..., Sorry for wasting your time. I wasn't aware <> meant not equal to. The help file didn't specify it, like that.
water Posted December 2, 2011 Posted December 2, 2011 Wasn't a waste of time. The help file says:<> Tests if two values are not equal. ... My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
smartkey Posted November 26, 2018 Posted November 26, 2018 Hi, <> this operator is Not Equal To. The comparison is case-insensitive when dealing with strings What is the operator when dealing with strings considering case sensitive scenario in mind.
water Posted November 26, 2018 Posted November 26, 2018 The help file I linked to in my first post explains how to ... My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Moderators JLogan3o13 Posted November 26, 2018 Moderators Posted November 26, 2018 @smartkey in the future, please don't resurrect a 7 year old post to ask a question. AutoIt is growing and changing all the time; what may have been relevant back in 2011 may not be so today; you are better off creating a new thread rather than hijacking someone else's. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts