Hola estoy haciendo un programa que realiza votes en la cadena de bloques de steemjs. 

Mi codigo


    var u = 0;
    const friends = [
          'baller',
          'enginewitty',
          'curacion.spanish ',
          'inber',
          'fmbs25'
    ];																									// Your Friend list.
    var verifyVote = false;
    
    var myInt = setInterval(function () {
    
    	if (u < friends.length) {
    		//console.log(friendsz[u++]);
    		wkd.api.getDiscussionsByBlog({tag: friends[u++], limit: 1}, (err, res) => { 
      			var author = res[0].author;
      			var permlink = res[0].permlink;
      			console.log(author);
      			console.log(permlink);
      		
    		wkd.api.getActiveVotes(author, permlink, (err, res) => {
    
    		for (var i = 0; i < res.length; i++) {
    		    var post = res[i].voter;
    		    if (res[i].voter == voter) {
    		        verifyVote = true;
    		    }
    		}
    		if (verifyVote) {
    			console.log("[Weku Buster Bot] says:".yellow, "The Post:", permlink, "of the user", author, "has already been voted.");
    		}else{
    			wkd.broadcast.vote(wif, voter, author, permlink, weight, (err, res) => { 
    	  		    console.log("[Weku Buster Bot] says: ".yellow + "Your Friend " + author + " Got " + weight/100 + "% Upvote For his last post.");
    			});
    			wkd.broadcast.comment(wifPosting, author, permlink, voter, comment_permlink, title, body, jsonMetadata, (err, res) => {
    	      		console.log("[Weku Buster Bot] says: ".yellow + "We have announced to your friend " + author + " that you have voted his last post a weight: " + weight/100 + " %.");
    	    });
    		}
    	});
     	});
    }
    
    }, 15000);

EL problema que surge es que al realizar la comparación de post y user hace que que todo el if se ejecute y me causa errores. 

post == voter verifica que el usuario ya ha votado si no ha votado, tendría que saltar a else y ejecutar las funciones. pero en este caso ejecuta las 2 cosas a la ves y me provoca errores. ¿Entonces como puedo hacer bien esa condicional?