Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check string on substring godot

There is the 'in' operator.

var string = "blaCell bla"
var a = "Cell" in string # true

It is mentioned here:
https://godot.readthedocs.io/en/stable/reference/gdscript.html#operators
 
PREVIOUS NEXT
Tagged: #check #string #substring #godot
ADD COMMENT
Topic
Name
4+3 =