How can I get these if statements to work?

edited November 2015 in Questions about Code

can someone please help me get these too work. When I check if col is equal to "neutral" it runs the code but doesn't run anything in the if statement. Why is that and how do I fit it?

for (TableRow row : Emotions.rows ()) {
    for (int i = 0; i < count; i++) {
      String Emotion = Emotions.getString(i, 2);
    }
}

col = Emotion;

void palette() {
    if (col == "neutral") {
        println(1);
        col1 = #ABB8AE; 
        col2 = #8BAA81; 
        col3 = #838472; 
        col4 = #B7CD8F;
        col5 = #D4D997;
        stroke(col1);
    }
}
Tagged:

Answers

Sign In or Register to comment.