As Easy as One-Two-Three
Python, 24 bytes

range(123,790,111).count

An anonymous function that outputs 0 or 1. It creates the list [123, 234, 345, 456, 567, 678, 789] and counts how many times the input appears.
f=range(123,790,111).count

f(123)
=&gt; 1
f(258)
=&gt; 0