Yes, absolutely, I think you got it now how it works Don't be confused by all the functions with
$(...). The basic for Tagger Script is really that it has some placeholders that get replaced by the proper value. So it's like a template for the final name you want. E.g. this is how you would probably explain how you want the files being named:
"I want the file names to start with the track number, followed by the track's title and the artist's name, all parts separated by a dash."
The tagger script for this will just be:
%tracknumber% - %title% - %artist%
Everything between two
% signs is considered a variable, and that will be replaced by the specific value if this is applied to a specific file. Everything that is not a variable in the example above is just taken as is. So if you want to have "GEAT SONG" written to the end of each of your file names, just do it:
%tracknumber% - %title% - %artist% GREAT SONG
Now the script you actually have is a bit more complicated, it includes functions. A function can alter some value or give you the option to do things only, when a certain condition is met. So for example
%tracknumber% by default will be just 1, 2, 3, 4 etc. But if you want to have leading zeroes, so you get 01, 02, 03, ..., you can use the
$num() function like so:
The number 2 here is the number of digits. Instead of 2 you could also use e.g. 3, resulting in 001, 002, 003,...
An example for a condition is that
$if($ne(%albumartist%,),somevalue) expression. This will output "somvalue" only,
%albumartist% is set.
$ne(%albumartist%,) means, test whether the albumartist variable is not euqal empty.