Sign in to follow this  
Followers 0
probedrone

comparing strings?

2 posts in this topic

i need to compare 2 strings. what operators do i use?

the '=' seems to work, tho i donno if this converts to ascii value and compare strings that way or not

the '!=' and 'not' does not work, so how would you compare if 2 strings are NOT equal?

and what can i expect from the '<' and '>' operators when comparing strings?

Thanks

Share this post


Link to post
Share on other sites



how would you compare if 2 strings are NOT equal?

if $string1 <> $string2 ; if different than

if $string1 == $string2 ; if is exactly the same

if $string1 > $string2 ; if greater than

if $string1 < $string2 ; if less than

8)


NEWHeader1.png

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