Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. or you could use a function carrier;
  2. func a()
  3. isTheComponentFunction;
  4. end
  5.  
  6. func b()
  7. doesNothing
  8. end
  9.  
  10. c=(a~=nil and a or b); -- shorthand for if a~=nil then c=a else c=b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement