Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfscript>
- // Execute Test
- test();
- private void function test()
- {
- // Mock Data
- var shop = {
- "getCheese" : function() {return "CHEESE_SANDWICH";},
- "hasCheese" : function() {return true;}
- };
- // My Sandwich
- var sandwich = null;
- if(shop.hasCheese()) sandwich = shop.getCheese();
- writeDump(sandwich);
- }
- </cfscript>
Add Comment
Please, Sign In to add comment