Sign in to follow this  
Followers 0
Autox

If then with wild cards?

6 posts in this topic

I am doing some DB type stuff and I need to do a match based on If $var = "" ....

Is that possible?

Share this post


Link to post
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?

Like:

IF $var = "" or $var = "X" Then
;Do Something
Else If $var = "" AND $var = "X" Then
;Do something else
EndIf

Share this post


Link to post
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 *

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0