Variables in Source Scripts

Is there a way to set a variable in a source script so that when an include file is called the variable can either be evaluated (ie T/F) or written to a tag (ie itunes country searched = and language=)?

some psudeo code:

%country%="us"
%language%="gb_en"

...

call include file

output to "COUNTRY"
If %country tag% does not exist
say %country%
End If

output to "SUPPORTED LANGS"
append %language% to "SUPPORTED LANGS"
Thanks

1 Like

It's got my vote +1

I wonder of it could do this also:

RegexReplace "\d±" %var%

Please check my iTunes script:

You can set which country you want to get iTunes tags from, and has language options too.

This is an old thread that was resurrected, but what I do is to use Set.

Set "CountryTag" "us"
Set "LanguageTag" gb_en"

then later

OutputTo "COUNTRY"
IfOutput "CountryTag"
	SayOutput "CountryTag"
EndIf

OutputTo "SUPPORTED LANGS"
SayOutput "LanguageTag"

to avoid them written to the files or reset them to be false

Set "CountryTag"
Set "LanguageTag"
1 Like