OneManPen Posted December 2, 2011 Share 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 Link to comment Share on other sites More sharing options...
water Posted December 2, 2011 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
OneManPen Posted December 2, 2011 Author Share 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. Link to comment Share on other sites More sharing options...
water Posted December 2, 2011 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
smartkey Posted November 26, 2018 Share 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. Link to comment Share on other sites More sharing options...
water Posted November 26, 2018 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 26, 2018 Moderators Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts