Check if the csv NOT exist in this case create it

Hi

I need a suggestion, i need to add before a macro start to work a checking for csv name.

If csv NOT exist i’d like to create it before kantu start to working.

With csvLine and csvSave i can create a csv but before i need to verify if the csv exist.

Can you provide an example please to do this.

Thanks

store|true|!ErrorIgnore
csvRead|whatev.csv|
if|!${!statusOK}|
csvSave|whatev|
endif||

1 Like

Hi @commensal

Your solution working, need only to add a line before csvSave

store|TEXTFORCSV|!csvLine

Otherwise without data to save in csv Kantu do not create the csv empty.

Thanks