[SOLVED] Trouble with Virtual Pins

Currently I am trying to set up a project where two switches are acting as as an exclusive or to two lights (only 1 light can be on at a time), however, I am running into trouble accessing the information from the first virtual pin (associated with the first switch). Below, i have included the code, however I have not found a clear example that has allowed me to access the virtual pin.

I have included my current code below

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <Bridge.h>
#include <BlynkSimpleYun.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "*************************";

void setup()
  pinMode(8, OUTPUT);
  int pinData = param.asInt();
    if (pinData = 1) {
    digitalWrite(8, HIGH);
  } else {
    digitalWrite(8, LOW);

void loop(){

edit: I found the mistake, i forgot to close the BLYNK_WRITE function