Jump to content
Sign in to follow this  
probedrone

comparing strings?

Recommended Posts

probedrone

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
Valuater

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.