Lingo Dictionary > S > stringP() |
![]() ![]() ![]() |
stringP()
Syntax
stringP(
expression
)
Description
Function; determines whether an expression is a string (TRUE
) or not (FALSE
).
The P in stringP
stands for predicate.
Example
This statement checks whether 3 is a string:
put stringP("3")
The result is 1, which is the numeric equivalent of TRUE
.
Example
This statement checks whether the floating-point number 3.0 is a string:
put stringP(3.0)
Because 3.0 is a floating-point number and not a string, the result is 0, which is the numeric equivalent of FALSE
.
See also
floatP()
, ilk()
, integerP()
, objectP()
, symbolP()
![]() ![]() ![]() |