You’ll be interested in using parseInequality. Maybe check out this thread, and/or search for parseInequality.
parseInequality