Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

strContains()

Purpose

Used to determine whether a string contains 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 contains the other.

Syntax

result = strBeginsWith( stringVar, to_find )

Arguments

result True (1) or false (0) result to indicate whether the string contains the search target

stringVar The string being checked

to_find To string being searched for

Example

stringVar = "FUZE"
to_find = "Z"

loop
    clear()
    if strBeginsWith( stringVar, to_find )
        print( "String '", stringVar, "' contains '", to_find, "'" )
    else
        print( "String '", stringVar, "' does not contain '", to_find, "'" )
    endif
    update()
repeat

Associated Commands

str(), strBeginsWith(), strEndsWith(), 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.