When CAN Message read drive event *HELP*

Hi,

Is there a way to read a certain byte in the CAN message and drive the if statement that way? What I am trying to do is → if CAN ID = 0x7D and byte 8 = 0x25 do the following…

the if() statement is working, but with “buf_”. If I make buf equal to any byte that the CAN message contains it works, but I can’t figure out how to isolate a read for one byte…_
```
*unsigned char len = 0;
unsigned char buf[8];

if(CAN_MSGAVAIL == CAN.checkReceive())

{
CAN.readMsgBuf(&len, buf);

unsigned int canId = CAN.getCanId();

Serial.println("----------------------");
Serial.print("Get Data from ID: ");
Serial.println(canId, HEX);

for(int it = 0; i<len; i++)
{

if(canId == 0x7D and buf[i] == 25)
{
genie.WriteObject(GENIE_OBJ_STATIC_TEXT, -X0C, 0);}

Serial.print(buf[i], HEX);
Serial.print("\t");
}
Serial.println();
}
_
```*_

    for(int i = 0; i<len; i++)
        {
        Serial.print(buf[1], HEX);
        Serial.print("\t");
        }
    Serial.println();

    if(canId == 0x7D and buf[7] == 25)
    {
        genie.WriteObject(GENIE_OBJ_STATIC_TEXT, -X0C, 0);
    }