ends with

This block is part of the condition group and was last modified in core v10.4.28.

ends with v10.4.28

Determines whether a string ends with the characters of a specified string

In pins 2
  • value required
    value

    The string to check for the ending characters.

  • ends with required
    value

    Characters to be searched for at the end of this string

Out pins 1
  • condition
    condition

    Represents the condition result: true if the string ends with the specified characters, false otherwise.

True when the string form of value ends with the string form of endswith, case-sensitively. If EITHER input is JS-falsy (nil, "", 0, false) the output is false without comparing. Non-strings are coerced JS-style: arrays join with commas, objects become "[object Object]". Example: value="Hello" endswith="LO" -> false (case-sensitive).

A typical wiring for ends with: value feeds the value pin; value feeds the endswith pin; the condition out pin feeds branch.

Studio canvas example for the ends with block: typical wiring for ends with.

Version history

Introduced in v10.4.28.


Back to condition Return to the main group to view all sub-groups Back to condition Return to the group to view all blocks within this group