I used the $input as a way for you to test the rest
if you are using an on text type event then you are going to be using $2- identifier (or whichever) to get the line of text with the " in it.
if you want to learn you are going to have to read something, so why not the help file?
what I thought you said you wanted was that if the number of " quote marks was even or odd, do something
the 2 // or 2 \\ is that if the %var is divisible by two or not divisible bye two (with no remainder) which can then be used in mIRC to see if a number is even or odd.

/help if then else
"the operators" heading on that page describes the // or \\