Advertisement
codeUni

Stupid code i made with sololearn

Mar 18th, 2021
949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.49 KB | None | 0 0
  1. #This code is made with https://www.sololearn.com/
  2. #This was made by DigitalIsaax
  3. isOnline = true
  4. isOffline = false
  5. userIsAdmin = false
  6. Minutes = 0
  7. ID = 9077828729
  8. #Insert any ID
  9. puts ("Hello user, take a look... your ID is #{ID}")
  10. #If you are new you will any ID you want
  11. IP = 19228843
  12. #Don't worry, this is random and not actually logging your location and data, because I don't know how to. :) no worries
  13. userIsAdmin = 90
  14. #Changing IP will produce an error
  15. Admin = 6
  16. Access = 8
  17. #To be honest, I don't know
  18. #Changing Access will cause a warning
  19. puts ("Also, reminding you that the IP variable is fake.\n Just added for detail")
  20. #P.S if you want to show the IP, you can.
  21. if userIsAdmin == true
  22.     puts "True"
  23.     # outputs "True"
  24. end
  25. if userIsAdmin == false
  26.     puts "False"
  27.     # outputs "False"
  28. end
  29. if isOffline == false
  30.     # outputs "false"
  31. end
  32. if isOffline == true
  33.     # outputs "true"
  34. end
  35. if isOnline == false
  36.     # outputs "false"
  37. end
  38. if isOnline == true
  39.     # outputs "true"
  40. end
  41. if Access > Admin
  42.     # outputs "false"
  43. end
  44. if Admin < Access
  45.     # outputs "false"
  46. end
  47. case Admin when 6,5
  48.  Admin + Access
  49. # outputs "14"
  50. end
  51. AdminAccess = false
  52. #AdminAcces cannot be changed to true.
  53. if AdminAccess == false
  54.     # outputs "false"
  55.     if AdminAccess == true
  56.         # outputs "error"
  57.     end
  58. end
  59. AdminPanel = false
  60. UserPanel = true
  61. a = [2,4,6,8,10,12]
  62. b = [8,16]
  63. res = a+b
  64. puts ("Arrays are intact")
  65. # Arrays are for stuff that i need
  66. AllAdmins = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement