//Checks if the user is chatbot if (userName == 'ChatBot'){ //Places the chatbot avatar in the variable var AvatarPic = ' '; } //Checks if the user is a guest else if(userRole == 0){ var AvatarPic = ' '; } else{ //Places the UNIQUE user avatar in the variable //outcome of this will be: // var AvatarPic = ' '; } //Here is where everything is written to chat return '