Search Values of Array in "One Go"
Sannyasin Brahmanathaswami
brahma at hindu.org
Fri Aug 25 23:41:18 EDT 2017
OK I will bite
what would an array representing an "AND/OR"
style query look like such that if used as a predicate
for
else if tElement contains pNeedle then
it would return true/false
How would you have to construct "tElement"
??
Mark: In terms of generalizing that function - then the key line which checks
whether an element matches is:
else if tElement contains pNeedle then
One could imagine that this could be an arbitrary predicate - pNeedle
doesn't have to be a string, so could be an array representing a AND /
OR style query; or could be a regex (in which case you'd use matchText).
More information about the use-livecode
mailing list