Jump to content

If then with wild cards?


Autox
 Share

Recommended Posts

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
Link to comment
Share on other sites

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 *

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...