Great, that was fast progress, congrats
Code: Select all
%i_width% = 720 ? "%s_custom_error%" : "Video Width error, actual width %i_width% | %s_custom_error%"
You can just add %s_custom_error% whenever you set a new value to s_custom_error, i used an | symbol to separate the different errors above.
This way, the messages get appended. Of course we also need to set s_custom_error NOT to "" in case the contition succeds, but instead we set it to "%s_custom_error%", so it retains the current value
If you later need to format the list, you can just replace the | symbol by @CRLF.
The stuff with @CRLF is a little hard to explain, it is a global variable in the programming language that ffastrans is written in and stands for newline.
So, when all checks are done, in the populate proc at start, just do this as last thing:
%s_custom_error% = $replace("%s_custom_error%","|",@CRLF)
This way, %s_custom_error% will contain each single error separated by newline.
Sidenote:
Note the use of "" around any variable that is of type s_ . This is something you got to do whenever you insert s_ variables anywhere, they always need to be enclosed in "", e.g. "%s_source%". i_ or f_ variable types are numbers and therefore do not need to be enquoted, e.g. %i_width%