rcmaehl

Unable to compare 2 values

2 posts in this topic

#1 ·  Posted (edited)

--Disregard--

Not takes precedence over comparisons... Although I feel this needs a better example in the help file.

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites



#2 ·  Posted

Global $variable1  = "abcdEFGH"
Global $variable2  =  "abcdefgh"

If ( $variable1 = $variable2) Then MsgBox(64, "", "=")
If StringCompare( $variable1, $variable2, 0) Then MsgBox(64, "", "StringCompare()")

If ( $variable1 == $variable2) Then MsgBox(64, "", "== casesense")
If StringCompare( $variable1, $variable2, 1) Then MsgBox(64, "", "StringCompare(casesense)")

 


Regards,
 

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