Autox Posted February 9, 2007 Posted February 9, 2007 I am doing some DB type stuff and I need to do a match based on If $var = "" .... Is that possible?
BrettF Posted February 9, 2007 Posted February 9, 2007 I am doing some DB type stuff and I need to do a match based on If $var = "" .... Is that possible? Like: IF $var = "" or $var = "X" Then ;Do Something Else If $var = "" AND $var = "X" Then ;Do something else EndIf Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
/dev/null Posted February 9, 2007 Posted February 9, 2007 I am doing some DB type stuff and I need to do a match based on If $var = "" ....Is that possible?I guess you are looking for StringInStr().... If not, please enhance your problem description... __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
Autox Posted February 12, 2007 Author Posted February 12, 2007 I guess you are looking for StringInStr().... If not, please enhance your problem description...I have a multidimensional array that contains a few hundred data points. One of the fields is a three digit code. 200, 300, 100, 199, 999, 500, etc... I am looking to be able to select based on something like or %9%.Thanks
xcal Posted February 12, 2007 Posted February 12, 2007 Run your array through a For...Next loop, and use StringInStr() to check for a 9? How To Ask Questions The Smart Way
Shevilie Posted February 12, 2007 Posted February 12, 2007 Your looking for http://www.autoitscript.com/autoit3/docs/f...tringRegExp.htm Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now