# transforming survey values

**URL:** <https://forum.ansible.com/t/transforming-survey-values/35657>\
**Category:** Ansible Project\
**Created:** [August 21, 2021, 11:20am UTC](https://forum.ansible.com/t/transforming-survey-values/35657 "2021-08-21T11:20:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omoeko](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@omoeko](https://forum.ansible.com/u/omoeko)\
**Post date:** [August 21, 2021, 11:20am UTC](https://forum.ansible.com/t/transforming-survey-values/35657/1 "2021-08-21T11:20:03Z")

</div>

Hi All.

I am looking to create transform the user input values from a user survey.  
The idea is to accept filenames as input, and the input will then be passed onto my script in this format.  
‘file1’,‘file2’,‘file3’

The challange I have here is that I will create the survey to have lets say fields for 5 files, sometimes the user might only be passing 1 or 2 files and in other cases they may be passing 5 files. Where a file path is not empty, it should be transformed to the format

‘file1’,‘file2’,‘file3’

Thanks in advance.
