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

REBOL 3 Functions: any-string?

any-string?  value

Return TRUE if value is any type of string.

Arguments:

value [any-type!]

See also:

string?   file?   email?   url?   any-block?   any-function?  

Description

Returns true for any type of string, and false for all other values.

if any-string? "Hello" [print "a string"]
a string
probe any-string? email@rebol.com
true
probe any-string? ftp://ftp.rebol.com
true
probe any-string? %dir/file.txt
true
probe any-string? 11-Jan-2000
false

To see what datatypes are strings:

print any-string!
string! file! email! url! tag! issue!


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