Just for fun, I'm trying to do an <x> is <y> detecting script, like with the XKCD bot. I can return which token the 'is' is, as a variable. So then I want to return the parameters between $3 and the 'is' - if IS is parameter 4, I want to return $3-4. If IS is parameter 7, I want to return $3-7.
I don't how to do this. :C I tried using a variable: $3-%var but that doesn't seem to work. Does anyone know a method for doing this?
Thanks in advance!