-
-
Save anonymous/1785f7bc2ed25a4f6edb to your computer and use it in GitHub Desktop.
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
In the component's init: | |
Variables.Categories = | |
{ 'T1' : 'Beetle' | |
, 'T1C' : 'Beetle Cabrio' | |
... | |
, 'CO' : 'Corrado' | |
, 'MISC' : 'MISC' | |
}; | |
Then the equivalent getVehicleCategories to what you have is just: | |
<cfreturn Variables.Categories[Arguments.vehicleID] /> | |
(But obviously can include any additional logic, like StructKeyExists/etc, as required.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment