Page 1 of 1

Exists function with User Variables - is it possible?

Posted: Sun Feb 09, 2020 5:08 pm
by gdpodesta
We want to conditionally prepend a disclaimer to a video, and to accomplish that, we generate a png file before the FFAStrans job begins.
The Insert Media works as expected, but I'm unable to get a simple conditional to recognize if the disclaimer file exists or not.
To test this and get it working, I've set up this workflow.
  • Populate variables, mimicking the API submission of the job
  • Test if the Disclaimer file exists or not
  • If NOT found, write a text file "NOTFOUND.txt"
  • If found, write a text file "FOUND.txt
i copied/pasted the conditional from the help text, and am certain the file does NOT exist, yet the only process that it continues on to is the result of a successful test - it never takes the failed test path. Is there something blatantly wrong with any of these nodes that I'm somehow missing?
2-9-2020 8-44-17 AM.jpg
2-9-2020 8-44-17 AM.jpg (97.84 KiB) Viewed 5549 times

Re: Exists function with User Variables - is it possible?

Posted: Sun Feb 09, 2020 6:24 pm
by momocampo
Hello gdpodesta,

Very productive right now :) That's great!
Anyway, you forgot the quotes inside your exists function.
must be :
$exists("%s_disclamer_png%")

Try with quotes and it will be ok ;)

Cheers.

Benjamin

Re: Exists function with User Variables - is it possible?

Posted: Tue Feb 11, 2020 2:06 pm
by gdpodesta
Don't you hate when fresh eyes are right? lol. Thanks!

Re: Exists function with User Variables - is it possible?

Posted: Tue Feb 11, 2020 2:33 pm
by momocampo
Hehe !
Fresh eyes are often right, true :)
Glad I helped you.

Cheers.

Benjamin