Created
July 20, 2018 13:54
-
-
Save trycf/4b087b40ae4cb4499c2b0ddf0727541b 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'; | |
local.index = ListFindNoCase(mappedColumnList, mappedColumn,',', true); | |
local.returnValue = ""; | |
if ( local.index > 0 ) | |
local.returnValue = ListGetAt(excelColumnList, local.index); | |
writedump(local.returnValue); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment