IfEmpty
IfEmpty 0.1-rc1
This snippet looks in a folder to see if there are any files. If the folder is empty it returns a message from a custom chunk. This was written to work alongside the FileDownload snippet, however, it will work just fine by itself. This snippet takes two required parameters: &path (path to file) and &message (chunk name).
Download
- ifempty.txt - 993 b (97 downloads)
Description
A simple snippet that looks in a directory to see if there are any files. If the directory is empty it returns a message from a custom chunk. This was written to work alongside the FileDownload snippet, however, it will work just fine by itself.
Instructions
1. Create a new snippet called IfEmpty. 2. Copy and paste the text from the IfEmpty.txt file. 3. Call the snippet from your chunk or document.* *Note: both the &path and the &message parameters are required. If you wish to use this snippet to augment the FileDownload snippet just place the call after your FileDownload snippet call. Example calls: [!IfEmpty? &path=`path/to/your/folder` &message=`your_chunk_template_name` !]
Released Versions
Releases that are grayed out are deprecated.
| Version | Released | Author | Downloads |
|---|---|---|---|
| Total Versions: 1 | Total Downloads: 97 | ||
| 0.1-rc1 | Jan 13, 2010 | bbusenius | 97 |
Download Statistics
Package downloads per day since tracking began on June 27th, 2010. Weekends are colored. Plot below shows an overview.
Top Countries
This is a list of the countries most downloading this Extra.
| Country | Downloads |
|---|---|
| United States | 11 |
| Malaysia | 1 |
| Switzerland | 1 |
| Canada | 1 |
| Mexico | 1 |
| Japan | 1 |
| Indonesia | 1 |
| Ukraine | 1 |
| Poland | 1 |




