Created
July 20, 2018 16:51
-
-
Save trycf/346a005cdb72b844a83ca21eacb85035 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
<cfscript> | |
excelColumnList = 'YR,MNTH,ANNIV,FIRST NAME,LAST NAME,EMAIL,NOTES'; | |
mappedColumnList= ',YEAR,MONTH,,First Name,Last Name,Email,COMMENTS'; | |
mappedColumn= 'Last Name'; | |
mappedColumnList = mappedColumnList.replaceall("^(,*)","") ; | |
local.index = ListFindNoCase(mappedColumnList, mappedColumn,',', true); | |
local.returnValue = ListGetAt(excelColumnList,local.index,",",true) ; | |
writeDump(local.returnValue); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment