param ([ValidateScript({ Test-Path -Path $_ -PathType Leaf })][string]$filePath)
If I declare such a parameter, will $filePath be evaluated as false if this is an invalid path?
Is the point of doing something like
if($filePath) { /* do stuff... */ }
or will an exception be thrown?
source share