Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Goto or jump functions

    Coding
    5
    22
    1290
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pianofire
      pianofire Fuze Team @petermeisenstein last edited by pianofire

      @petermeisenstein So if you declare the variable outside of the function it becomes global and can be used anywhere:

      int my_variable = 0
      
      function test()
        my_variable=1
      return void
      
      test()
      
      print(my_variable) // value will now be 1
      
      P 1 Reply Last reply Reply Quote 0
      • P
        petermeisenstein F @pianofire last edited by

        @pianofire Ok thanks

        1 Reply Last reply Reply Quote 0
        • First post
          Last post