I'm having great difficulty assigning and testing account ids that I've created in a custom object.I want to compare accountsif (thisAc == thatAc){} //endifand triedif (thisAc.id == thatAc.id){} //endifMy custom object has an account field: MyCustomObject__c has referenceCompany__cI can't seem to copy it to another custom object - even a temporary Accountstarting from MyCustomObject my1...MyOtherCustomObject myOco = new(MyOtherCustomObject);myOco.copiedCompany__c = my1.referenceCompany__c;I've tried:Account thisAc = .my1.referenceCompany__c;andAccount thatAc= .my1.referenceCompany__r; (which seems close to the answer).Any suggestions?Thanks in advance.