UCE Docs / contains

Signature

bool contains(String haystack, String needle)

Parameters

haystack : string to search in
needle : substring to look for
return value : true when needle appears in haystack, otherwise false

Returns whether haystack contains needle.

An empty needle always returns true.

Example

print(contains("uce docs", "docs") ? "yes\n" : "no\n");
Output
yes