I want to use comparison logic in two inputs

Maybe this post discussed previously should help you solve your issue: