If-Then-Else for Variables
Posted: Sun Jul 30, 2017 2:24 pm
Hi,
I'd like to have an "If-Then-Else" structure for variables. I have two types of filenames:
"Dance - Titel - Artist" and "Titel - Artist".
If I want to get the artist out of the filename it's easy:
%?F3;F2%
This is like "If F3 exists, use F3, else use F2"
But for the title I would need something like "If F3 exists, use F2, else use F1".
Alternatively a F1/F2/F3 variable which does not count from the beginning, but from the end, would also solve the task.
CU,
Arthur Dent
I'd like to have an "If-Then-Else" structure for variables. I have two types of filenames:
"Dance - Titel - Artist" and "Titel - Artist".
If I want to get the artist out of the filename it's easy:
%?F3;F2%
This is like "If F3 exists, use F3, else use F2"
But for the title I would need something like "If F3 exists, use F2, else use F1".
Alternatively a F1/F2/F3 variable which does not count from the beginning, but from the end, would also solve the task.
CU,
Arthur Dent