Advertisement
v1993

BrokenStringLists.zs

Dec 21st, 2021
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. val MyStringList = ["hello", "world"] as string[];
  2.  
  3. if (MyStringList has "hello") {
  4. print("Success!");
  5. }
  6.  
  7. function doesItHaveWorld() as bool {
  8. if (MyStringList has "world") {
  9. print("World found!");
  10. return true;
  11. }
  12. return false;
  13. }
  14.  
  15. doesItHaveWorld();
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement