Advertisement
Guest User

Stefan Bauwens

a guest
Dec 1st, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. "appvTESTVAR"->Str1
  2.  
  3. .If the appvar doesn't exist...
  4.  
  5. !If GetCalc(Str1)->P
  6. .(assuming you want a pointer in P)
  7.  
  8. .create it
  9. GetCalc(Str1,2)->P
  10. 0->{P}r
  11.  
  12. End
  13.  
  14. .Notice that first command, "!If GetCalc(Str1)->P", sneakily puts a pointer in P if the appvar does exist, so you don't have to do something like this:
  15.  
  16. !If GetCalc(Str1)
  17. GetCalc(Str1,2)
  18. End
  19. GetCalc(Str1)
  20.  
  21. .^^This is bad code
  22.  
  23. .Do the first block of code and you should be fine
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement