scripts 1 variable?

newbie noob question

can i have 1 script determine a variable and another read from it independantly??

many thanks

Scope of a variable and how they last are a big subject, property are global and most useful e.g.

property Evil: 666
if Evil is 666 then say “This is a evil number”

If you have mutlipy script having then in one Applescript studio application would make sense.

Read AppleScript Language Guide from Apple

Good luck