compare the input and the Top of stack

How to compare the input and the Top of stack?
if top value < input value, then input value allowed get into the stack
Topic archived. No new replies allowed.