is_string function
Test whether a value is a string.
How to write it
is_string(expr)
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
Examples
is_string("two words")In the solver,
Open in the solveris_string("two words")givestrue.is_string(3)In the solver,
Open in the solveris_string(3)givesfalse.
Related functions
- string_join
Join strings into one.
- to_string
Write a value as a string.
- string_length
Number of characters in a string.