227
edits
Line 245: | Line 245: | ||
Why not write write <tt>EpNoPad := $pad(%EpNo%, $len(%EpCount%), "0")</tt> and be done with it? | Why not write write <tt>EpNoPad := $pad(%EpNo%, $len(%EpCount%), "0")</tt> and be done with it? | ||
There are a lot of ongoing anime series where the <tt>EpCount</tt> variable is not yet available. | There are a lot of ongoing anime series where the <tt>EpCount</tt> variable is not yet available. | ||
In that case <tt>EpCount</tt> would contain the | In that case <tt>EpCount</tt> would contain the value <tt>"0"</tt> (Think of Gintama, Conan etc.) and | ||
padding would never occur (well it would after its episode count is set). | padding would never occur (well it would after its episode count is set). | ||
Now <tt>EpHiNo</tt> comes to the rescue: It contains the highest released episode number. | Now <tt>EpHiNo</tt> comes to the rescue: It contains the highest released episode number. | ||
Now we only need to determine which one is longer, and pass it to the <tt>pad</tt> function, | Now we only need to determine which one is longer, and pass it to the <tt>pad</tt> function, | ||
what is exactly what we have done in the example. | what is exactly what we have done in the example. | ||
=== Different formats for Movies & TV Series === | === Different formats for Movies & TV Series === |
edits