Created
April 23, 2024 17:32
-
-
Save trycf/b5a9b71d9e0a7127bd8474e65ac24a66 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
<cfif true> | |
<cfset latestClubId = 'LYC000001'> | |
<cfset numericPart = mid(latestClubId, 4, len(latestClubId) - 3)> | |
<cfset newNumericPart = NumberFormat((numericPart + 1), "000000")> | |
<cfset newClubId = "LYC#newNumericPart#"> | |
<cfoutput> | |
#newClubId# | |
</cfoutput> | |
<cfelse> | |
<cfset newClubId = "LYC000001"> | |
<cfoutput> | |
#newClubId# | |
</cfoutput> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment