s:exists

Check if a file or a variable exists.

INPUT
<s:set var="x">3</s:set>
<s:exists var="x" />
OUTPUT
#true
INPUT
<s:exists file="posts/hello-world.html" />
OUTPUT
#false
NOTE: Exists only returns #true or #false and it's usually used inside a <case>.
NOTE: To check if a hidden file exists or not you have to use the hidden= attribute. Otherwise, hidden files are ignored.
☼ ☼ ☼ anotomy ☼ ☼ ☼
var=""  name=""  

To check if a variable exists.

file=""  loc=""  path=""  

To check if a file exists.

hidden=""  allow-hidden=""  include-hidden=""  

Include hidden files. By default, hidden files are ignored.