Same Strings returns false


hi

     both strings not same reason looks same.one string came cmd>notepad>extendscript , other 1 declared variable. both not same , returns false.any thing have text encoding?? if plz tell

 

//example

//----------------------

var a= "a2f56"; (serial number generated in command prompt , saved text file , read in extend script)

var b="a2f56";

 

if(a==b){

return true;

}else{

alert("not today ");

}

//---------------

 

i appreciate ur help!!

plz check screen shot below

eroor.png

maybe have whitespace, linebreaks or whatever @ beginning/end of 1 of strings? verify this, check whether length of strings identical. if length identical, iterate on characters , see of them not identical.



More discussions in After Effects Scripting


adobe

Comments

Popular posts from this blog

shape alpha vs layer alpha in cc library

Photoshop CC 2017 - Ruler Tool - Error 8007...