anycf([folder_name], condition, [recursive])


Description


Check to see if any subfolder satisfies the condition.
"Recursive" means that all descendants are checked (not just the immediate children). The default is that "recursive" is true.
When only one argument is specified it is assumed to be the condition and the folder_name is assumed to be the folder where the rule is applied
When the first argument is a string it is treated as the name of the folder to be checked and the second argument is the condition
When the first argument is not a string it is treated as the condition and the second argument is recursive

Examples

anycf(cfv())
is true if any descendant of the folder has any value
cfv() returns true if the folder has value false if not

anycf("Notepad 1", cfv())
is true if there are subfolders of the folder "Notepad 1"

anycf(cfv(), false)
means any child of the self folder has any value

anycf("Notepad 1", cfv(), false)
means any child of the folder "Notepad 1" has any value

anycf(cft()==1)
Will return a true value only if the there is a child folder with type 1 (Checkmark see gft())
cft() returns the folder type for any folder.

Related Rules

anyf(), anypf()