I have a mapping defined in my ethereum contract as follows
mapping (string => string) client;
I have a function that is trying to add clients to this mapping but before i add i wanna check if item already exists. Is there a way i can get index of an item in that either by a out of the box method which is like "get me the index of item in this mapping if value is this" or maybe iterate through the mapping inside the contract
function AddClient(string clientName) {
}