caspa Posted January 16, 2013 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted January 16, 2013 if u have created 20 script and they all use this "for( set .@i,1; .@i <= 6; set .@i,.@i+1 )" <-- would that affect other script? i mean would they alter how the other script is supposed to work? Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted January 16, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted January 16, 2013 ".@" - A scope variable.They are unique to the instance and scope. Each instance has it's own scope that ends when the script ends. Calling a function with callsub/callfunc starts a new scope, returning from the function ends it. When a scope ends, it's variables are converted to values ('return .@var;' returns a value, not a reference). Quote Link to comment Share on other sites More sharing options...
Question
caspa
if u have created 20 script and they all use this "for( set .@i,1; .@i <= 6; set .@i,.@i+1 )" <-- would that affect other script? i mean would they alter how the other script is supposed to work?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.