# How can I create lines in Desmos where x equals any integer?

**URL:** <https://cl.desmos.com/t/how-can-i-create-lines-in-desmos-where-x-equals-any-integer/5648>\
**Category:** Questions\
**Created:** [May 1, 2024, 11:22pm UTC](https://cl.desmos.com/t/how-can-i-create-lines-in-desmos-where-x-equals-any-integer/5648 "2024-05-01T23:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhengyuancheng](https://avatars.discourse-cdn.com/v4/letter/z/47e85d/32.png) [@Zhengyuancheng](https://cl.desmos.com/u/Zhengyuancheng)\
**Post date:** [May 1, 2024, 11:22pm UTC](https://cl.desmos.com/t/how-can-i-create-lines-in-desmos-where-x-equals-any-integer/5648/1 "2024-05-01T23:22:10Z")

</div>

![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f628db2b54b81c12e54350af5c82249c2f489e91.png)  
I tried using x = n, but it didn’t work. I also checked the help center about piecewise functions, but didn’t find a solution  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/6/6a7d53733d01e4b02dbb2f086a372f619b9a910a.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [May 1, 2024, 11:55pm UTC](https://cl.desmos.com/t/how-can-i-create-lines-in-desmos-where-x-equals-any-integer/5648/2 "2024-05-01T23:55:28Z")

</div>

This type of question may be better suited for the calculator support at [https://help.desmos.com/hc/en-us](https://help.desmos.com/hc/en-us). However, it looks like you’ve got a warning on your list, n. It probably has to do with the number of periods. You have two and you need three to define a series. The initial comma is not incorrect, but is not necessary. Either `[a,...b]` or `[a...b]` should fix your issue.
