in reply to Re: IF condition with a range
in thread IF condition with a range

True! Thank you!

Replies are listed 'Best First'.
Re^3: IF condition with a range
by ikegami (Patriarch) on Jul 16, 2018 at 14:17 UTC

    You could also use

    if (abs($y-$x) <= 1)

    (Added to earlier post)