Variables not saving
same code snippet without using pin

char equalText[80];

if (equalState){
  strcpy(equalText, "priority is equal. &lt;a href=\"/?equal=0\"&gt;Deactivate&lt;/a&gt;");
  equalState = false;
}
else {
  strcpy(equalText, "priority is not equal. &lt;a href=\"/?equal=1\"&gt;Activate&lt;/a&gt;");
  equalState = true;
}
equalState = server.arg("equal").toInt();


but it does not make much sense to set the value if you already switched the state based on it's previous value