in reply to IF condition with a range
Assuming integers,
orif ($y-1 <= $x && $x <= $y+1)
if (abs($y-$x) <= 1)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IF condition with a range
by Anonymous Monk on Jul 16, 2018 at 14:16 UTC | |
by ikegami (Patriarch) on Jul 16, 2018 at 14:17 UTC |