Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

is_match function

Test whether the argument satisfies match.

How to write it

is_match(expr)

  • piecewise

    Cases written value if condition, with an optional otherwise case.

  • indicator

    A condition as a number: 1 when it is true and 0 when it is false.

  • pre_decrement

    Subtract 1 from a variable in place and return the new value.

  • increment

    Add 1 to a variable in place and return its old value.

  • pre_increment

    Add 1 to a variable in place and return the new value.

  • ifelse

    A value chosen by a test.