Tile - String - Includes – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (YlandsClassyBot moved page Ylands Tile - String includes to Ylands:Tile - String - Includes: New Structure)
No edit summary
Line 1: Line 1:
[[Image:Ylands_Tile_-_String_includes.png]]
<!---
*'''Returns''' (true/false) '''whenever''' given [[Ylands Tile - String literal|'''string''']] '''contains''' characters of a specified '''text'''.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*'''Start index'''
-->
**Position at which to start the search.
== Includes(Source, Text, Start index) ==
**Script counts positions from zero. 0 is the first position in a string, 1 is the second, 2 is the third ...


=Notes=
[[File:YlandsTile-83.png]]
*Instruction is '''case''' '''sensitive'''.
 
<pre>includes(text: any, startIndex: number): boolean;</pre>
=== Parameters ===
 
==== text ====
 
==== startIndex ====
 
=== Returns ===
 
'''boolean'''
 
=== Description ===
 
Returns (true/false) '''whenever''' given '''string''' '''contains''' characters of a specified '''text'''.
 
=== Notes ===
 
* '''Start index''' - position at which to start the search.
* Script counts positions from zero. 0 is the first position in a string, 1 is the second, 2 is the third ...
* Instruction is '''case''' '''sensitive'''.




Line 14: Line 33:


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

Revision as of 08:53, 8 July 2021

Includes(Source, Text, Start index)

YlandsTile-83.png

includes(text: any, startIndex: number): boolean;

Parameters

text

startIndex

Returns

boolean

Description

Returns (true/false) whenever given string contains characters of a specified text.

Notes

  • Start index - position at which to start the search.
  • Script counts positions from zero. 0 is the first position in a string, 1 is the second, 2 is the third ...
  • Instruction is case sensitive.