Trigger if certain data matches - Mysql I have 2 tables load_data and logs.

I have written a trigger on the load_data table (mysql).
The trigger inserts the data into the logs table on Updates

I would like to insert the data in "load_data" only when the 3 columns has following records 

If diIndex=3 &amp;&amp; diMode=0 &amp;&amp; diStatus=1 then only execute insert statement.

I tried this but throws an error

SELECT 1
   INTO @id
   FROM load_data
   WHERE diIndex=3 &amp;&amp; diMode=0 &amp;&amp; diStatus=1;

   IF @id != 1
   THEN
       INSERT INTO logs(user_id,button_name,flag,box_name)
values("83","Plant","1","Trigger")
    END IF;
SELECT @a := EXISTS ((SELECT 1 FROM load_data WHERE diIndex=3 and diMode=0 and diStatus=1));
IF @a = 1 THEN

       INSERT INTO logs(user_id,button_name,flag,box_name)
       VALUES("83","Plant","1","Trigger");

END IF;


or

IF EXISTS ((SELECT 1 FROM load_data WHERE diIndex=3 and diMode=0 and diStatus=1)) THEN
BEGIN
       INSERT INTO logs(user_id,button_name,flag,box_name)
       VALUES("83","Plant","1","Dark Red");
END;

ELSEIF EXISTS((SELECT 1 FROM load_data WHERE diIndex=1 and diMode=0 and diStatus=1)) THEN
BEGIN
       INSERT INTO logs(user_id,button_name,flag,box_name)
       VALUES("83","Plant","1","Yellow");
END;

ELSEIF EXISTS((SELECT 1 FROM load_data WHERE diIndex=3 and diMode=0 and diStatus=1)) THEN
BEGIN
       INSERT INTO logs(user_id,button_name,flag,box_name)
       VALUES("83","Plant","1","RED");
END;

END IF;