I've been using FileBot for while, using Google and these forums to figure out how to do what I've wanted to do. And so far that's worked most of the time. Except with if/else statements. I have a basic understanding of them, but haven't really figured out how they work. The only thing I've really figured out with them is this basic way of adding the video quality if it's 720p or 1080p.
Code: Select all
{if (vf=="720p") " [720p]" else ""}
But I have not idea how to use it when something is a variable. For example I'm trying to use it (if/else) to write "Special" if something is a special, and "Episode" if it's not. However the "{special}" outputs the special number, which would be different for each special, meaning without writing a thousand lines, doesn't work.
Similarly I've seen what looks to be another kind of if/else statement written with "?" & ":", but even less sure of how those work. One last thing, is it possible to have the output of the if/else be a variable e.g. "{s}" or "{e}"?
Please and thanks for any help.