Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithPersonally, I would solve the problem with the attached the graph.
Create two "dummy" files somewhere on your server, one XLS, and one CSV
They could be in some folder other than your base folder, but they both need to exist.
Both of them should have the same headers, but no data records.
With the attached code, it will read the files on both path(s) and concatenate the paths into a single result.
If you have only an XLS in the upload folder, this will read the (real) XLS and the (dummy) XLS and concatenate it to the dummy CSV. You'll have the records from the real XLS. Vice versa for the CSV.
================
I don't think you can get Switch (nor Bypass) to do what you wish here. Both Switch and Bypass operate on the concept of what CAN be "satisfied", or restated: what can have data. Bypass in particular will always take the first input unless that input is disabled. It will ONLY take the 2nd,3rd inputs if the first one has been disabled.
I'm not sure, but it may well be that Switch will only make the decision between inputs after you've toggled its Event Input (complicated) - I don't think ordinary clocking (with metacheck) is going to do it for you.
Attachments:
File_Format.brg