Jump to content

Recommended Posts

Posted

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

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...