Search found 2 matches
- 02 Jun 2022, 17:41
- Forum: Scripting and Automation
- Topic: Issue with if, else if, else statements
- Replies: 3
- Views: 1956
Re: Issue with if, else if, else statements
e.g. if-then-else would work like this:
{
if (fn =~ /(?i)criterion/)
return ".Criterion"
else if (fn =~ /(?i)arrow/)
return ".Arrow"
else
return ".none"
}
What does (?i) do here? Are these statements identical to using fn.match(), except that they return true or false?
- 02 Jun 2022, 02:51
- Forum: Scripting and Automation
- Topic: Issue with if, else if, else statements
- Replies: 3
- Views: 1956
Issue with if, else if, else statements
I'm having an issue with some conditionals and was hoping someone could point out what my error is.
The file I'm using as reference is Blood and Black Lace (6 donne per l'assassino) (1964) (Arrow Restoration).mkv
What I want to achieve: Add "Arrow" or "Criterion" to file names if they are present ...
The file I'm using as reference is Blood and Black Lace (6 donne per l'assassino) (1964) (Arrow Restoration).mkv
What I want to achieve: Add "Arrow" or "Criterion" to file names if they are present ...