Jump to content

Definition file


Recommended Posts

hey guys,

im making a script that gets text in a string like:

$string="hello world"

Then i want to check it for certain words in it with the function stringinstr()

works fine, but just like the topic title says i want a definition file.

I need to check for alot of differenter works and i dont want 100 if statements in my script.

what is a nice way to make such a file?

any ideas?

edit:

maybe good to say that i only need to give another variabele the value 1 if the text is found and if not it just stays 0

$check=0

$string="hello world"

If stringinstr($string,"hello") Then

$check=1

Endif

If $check=1 Then

do some things

hope this helps

Edited by cageman
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...