tinman_72 Posted September 28, 2019 Share Posted September 28, 2019 (edited) When comparing strings why is 'A' equal to 'a' ? For example: $sFoo = 'A' $sBar = 'a' If $sFoo = $sBar Then MsgBox ( 4096, 'Debug', '"' & $sFoo & '" is equal to "' & $sBar & '".' ) Else MsgBox ( 4096, 'Debug', '"' & $sFoo & '" is not equal to "' & $sBar & '".' ) EndIf Is there a work around? I need to be able to differentiate between the two. Thank you in advance. Edited September 28, 2019 by tinman_72 Problem solved. Link to comment Share on other sites More sharing options...
Bilgus Posted September 28, 2019 Share Posted September 28, 2019 https://www.autoitscript.com/autoit3/docs/intro/lang_operators.htm TLDR; use == tinman_72 1 Link to comment Share on other sites More sharing options...
tinman_72 Posted September 28, 2019 Author Share Posted September 28, 2019 Aw gee whiz. I've been using AutoIt extensively for about five years and never ran into this problem before. Thanks for your help. Bilgus 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now