Advertisement
Guest User

Untitled

a guest
May 30th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. --Hello Fifi, if you use two dashes before you write anything on a line,
  2. --the script will ignore it.
  3.  
  4. --Change the values of a, b, and c to change the output it gives you.
  5. local a = 1
  6. local b = 2
  7. local c = 3
  8. local print1 = "a+b is equal to c"
  9. local print2 = "a+b is not equal to c"
  10. if (a+b) == c then
  11. print (print1)
  12. else
  13. if (a+b) ~= c then
  14. print (print2)
  15. end
  16. end
  17. print "Print Successful"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement