Created
February 25, 2021 23:45
-
-
Save trycf/f2564742e1c793de1cb355535b064dd6 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset arguments.destinatarios = '101,102,doc_primaria,l_1'> | |
<cfset tempArray = listToArray(arguments.destinatarios)> | |
<cfdump var="#tempArray#"> | |
<cfset secciones = []> | |
<cfset listaDist = []> | |
<cfloop from="1" to="#ArrayLen(tempArray)#" index="i"> | |
<cfif Find('l_', tempArray[i])> | |
<cfset ArrayAppend(secciones,tempArray[i])> | |
<cfelse> | |
<cfset ArrayAppend(listaDist,Replace(tempArray[i],'l_',''))> | |
</cfif> | |
</cfloop> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment