searchif

Command: searchif


Description

calls search and removes the substrings/-arrays generated
thereby. Neither string/array will be conserved (!)
bool contains success or failure.
Parameters
string1/array1: The object where to search into.
string2/array2: The subobject to look for.
bool is true on success otherwise false
Author
Hehl
Bugs
Does not have optimal performance; search creates subobjects
which are not needed for serachif.
Synopsis
string1 string2 searchif -> bool
array1 array2 searchif -> bool
Examples
(Hello world!) (Hello) searchif -> true
[1 3 2 5 2] [3 2] searchif -> true
File
lib/sli/misc_helpers.sli
Remarks

FirstVersion