Sign in to follow this  
Followers 0
cageman

Definition file

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



_FileReadToArray

For...Next

StringInStr

Share this post


Link to post
Share on other sites

_FileReadToArray

For...Next

StringInStr

thank you works fine:)

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