Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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)=true⁡\displaystyle \operatorname{is\_string}(\text{two words}) = \operatorname{true}
    is_string("two words")

    In the solver, is_string("two words") gives true.

    Open in the solver
  • is_string⁡(3)=false⁡\displaystyle \operatorname{is\_string}(3) = \operatorname{false}
    is_string(3)

    In the solver, is_string(3) gives false.

    Open in the solver