REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: any-path?

any-path?  value

Return TRUE if value is any type of path.

Arguments:

value [any-type!]

Description

Returns true if the value is any type of path! and returns false for all other values.

print any-path? 'test/this
true
print any-path? first [example/item: 10]
true
print any-path? second [print :example/item]
true
print any-path? 123
false

To learn what datatypes are paths:

print any-path!
path! set-path! get-path! lit-path!


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin