Determine if your interval is open, closed or semi-open. If it is semi-open, determine which side is open and which is closed. For example, "more than 10 and less than or equal to 20" is semi-open (closed on the upper end).
Find the lower limit of the interval; call this L. If the interval is closed, or semi-open and closed on the lower end, write L <= x. Otherwise, write L < x. In the example, write 10 < x.
Find the upper limit of the interval; call this U. If the interval is closed, or semi-open and closed on the upper end, write x <= U. Otherwise, write x < U. In the example, write x <= 20.
Join the two statements by writing them next to each other but with only one x. In the example 10 < x <= 20.