Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: iMask's GS2 Tutorials

  1. #11
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Quote Originally Posted by Vacci View Post
    A single equal sign "=" can be thought of as assigning a value to a variable (i.e. varX = 5 means "varX is now equal to 5").


    On the other hand, a double equals sign "==" is a check, like asking the program a question (i.e. varX == 5 means "is varX equal to 5?"). From there, the program behaves accordingly to whether that question is answered true or false.
    I know the difference between one and two equals sign. I was trying to understand why John said "a is not "equals" to 10"
    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  2. #12
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Quote Originally Posted by iMask View Post
    I know the difference between one and two equals sign. I was trying to understand why John said "a is not "equals" to 10"
    a = 10;
    This is not making a equals to 10, because this would be 10 is equals to a, whereas a would have been another value before this piece of code.
    You're assigning the value 10 to a.

    a = a + 1;
    a is never equals to a + 1 (theoretically and mathematically unless a = + infinity), this would mean a = a + 1, a - a = 1, 0 = 1 -> Impossible.
    The value a + 1 is assigned to a, and a + 1 is replaced with ValueOf(a) + 1.

    Saying "equals" is wrong.
    -Johnaudi

  3. #13
    Veteran Jahola's Avatar
    Join Date
    Jun 2013
    Location
    London, England
    Posts
    442
    1 + 1 = 2

  4. #14
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    Sorry I haven't been updating with this...now that summer is here, I can now do weekly tutorials, starting hopefully tomorrow
    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  5. #15
    Veteran WwW's Avatar
    Join Date
    May 2015
    Location
    Philippines
    Posts
    430
    9 + 10 = 21. Make sense how to script lol.

    Where are you going to post? In this thread I wanna learn How to Script They said it's fun.

    Do you know why people like Violence?

    It is because it feels good. Humans find violence deeply satisfying. But remove the satisfaction, and the act becomes... Hollow
    .

  6. #16
    Big Cheese Captain
    Join Date
    Jun 2013
    Posts
    1,029
    I stopped being lazy and uploaded my 3rd video!

    https://youtu.be/Ni2hQfWHhhU
    iEra Developer / SFX Admin

    Need help? Contact me:
    Email: [email protected]

  7. #17
    will you be making more videos, also it would be nice if you would work on my upcoming server

  8. #18
    Senior Captain NCX's Avatar
    Join Date
    Feb 2016
    Location
    In your heart
    Posts
    1,848
    PHP Code:
    function onCreated (); {
      echo (
    "Hello World") ;

    That is right?? Please help me i want to learn how to script
    Do not Open
     Spoiler


    Disc: NCX#4821

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •