Switch between color/brightness with rotary encoder for Nano (RGB LED Strip)

Ah I see. So assign it as either "true" or "false" in the "Void Setup()" first and then inside the loop write something like:

void loop(){
	buttonState = digitalRead(en_pin_button);
	if (buttonLastState == HIGH) && (buttonState == LOW) {
		encoderFunction = !encoderFunction;
		;
	}
}

?