# How can i skip a request line when variable from csv is empty?

**URL:** <https://community.postman.com/t/how-can-i-skip-a-request-line-when-variable-from-csv-is-empty/33570>\
**Category:** Help Hub\
**Tags:** newman-project, variables, collections\
**Created:** [March 17, 2022, 2:54am UTC](https://community.postman.com/t/how-can-i-skip-a-request-line-when-variable-from-csv-is-empty/33570 "2022-03-17T02:54:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![telecoms-astronomer3](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@telecoms-astronomer3](https://community.postman.com/u/telecoms-astronomer3)\
**Post date:** [March 17, 2022, 2:54am UTC](https://community.postman.com/t/how-can-i-skip-a-request-line-when-variable-from-csv-is-empty/33570/1 "2022-03-17T02:54:50Z")

</div>

I am very new to javascript and postman. Below is my code showing only 1 out of 8 items in the "line\_item"array. i want to skip the request for item i when {{orders.line\_itms.i.name}} is empty where i range from 1:8.does anyone knows how to do this efficiently? Thank you! =)))

“line\_items”: [  
{  
“title”:“{{orders.line\_items.1.name}}”,  
“quantity”: {{orders.line\_items.1.quantity}},  
“price”:“{{orders.line\_items.1.price}}”,  
“properties”: [  
{  
“name”: “{{orders.line\_items.1.properties.1.name}}”  
},  
{  
“name”: “{{orders.line\_items.1.properties.2.name}}”  
},  
{  
“name”: “{{orders.line\_items.1.properties.3.name}}”  
},  
{  
“name”: “{{orders.line\_items.1.properties.4.name}}”  
},  
{  
“name”: “{{orders.line\_items.1.properties.5.name}}”  
}  
]  
}]
