Skip to content

Instantly share code, notes, and snippets.

@jsteinshouer
Created December 8, 2023 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsteinshouer/048c9ebc9a93d3f390d60e7136bbcc0f to your computer and use it in GitHub Desktop.
Save jsteinshouer/048c9ebc9a93d3f390d60e7136bbcc0f to your computer and use it in GitHub Desktop.
Variable Scope Demo
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
component {
function saveRecord( required firstName, required lastName) {
record = {
firstName = arguments.firstName,
lastName = arguments.lastName
};
//simulate load on the system
sleep( randRange(1,250) );
return "
Record Saved!
#serializeJSON(record)#";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment