Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

strEndsWith()

Purpose

Used to determine whether a string begins with a specific character or series of characters.

Description

Receives two strings of any length, then returns either true or false to indicate whether the supplied string ends with the other.

Syntax

result = strEndsWith( stringVar, to_find )

Arguments

result True (1) or false (0) result to indicate whether the string ends with the string being searched for

stringVar The string being checked

to_find The string being searched for

Example

stringVar = "FUZE"
to_find = "E"

loop
    clear()
    if strEndsWith( stringVar, to_find )
        print( "String '", stringVar, "' ends with '", to_find, "'" )
    else
        print( "String '", stringVar, "' does not end with '", to_find, "'" )
    endif
    update()
repeat

Associated Commands

str(), strBeginsWith(), strContains(), strFind(), strReplace(), stringHash()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.