find_in_set - This function is used to check is a value is set within a list with a delimiter between each element.
find_in_set(values:"…",list:"…",delimiter:"…") find_in_set("values","list"[,"delimiter"])
find_in_set and isset are synonyms.
In the first form, each parameter is named while in the second form, the parameters are positional.
The delimiter is set by default to ",". The delimiter can be more than one character.
It returns 0 if the value is not find in the set. When the value is found, the position is returned starting at 1.
if find_in_set(list:",bb,ccc,d",values:"d",delimiter:",") then "found"; else "not"; endif
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.