Special $exists

Use this forum to request features. Maybe you'll get lucky!
Post Reply
momocampo
Posts: 592
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Special $exists

Post by momocampo »

Hello,

Maybe another new function could be useful.
The $exists function find if file exists in folder, maybe a similar exists function could be created to find a string in a text file or a xml file(F ex :$find).
It will be useful to conditional the content of a text file to somewhere in particular.
I hope no function like exists but I don't think so.
Thanks.

Benjamin
admin
Site Admin
Posts: 1668
Joined: Sat Feb 08, 2014 10:39 pm

Re: Special $exists

Post by admin »

You don't need a special function for that. You can just use the "Conditional" node to test:
*my string*=%s_my_variable%

So if the variable %s_my_variable% contains: "some text and my string and some more text", your string should be found.

-steinar
momocampo
Posts: 592
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Special $exists

Post by momocampo »

Hello Steinar,
Thanks for your help it works but not in this order (or I don't understand well).
In conditional node , begin by <if %s_my_variable% = *my string*> then it works :)
If I do reverse if string = variable I have error populating.
Anyway, thousand of thanks!!!!

Cheers
admin
Site Admin
Posts: 1668
Joined: Sat Feb 08, 2014 10:39 pm

Re: Special $exists

Post by admin »

It should not matter what the order is, FFAStrans just compares the two. But I'll double check.

-steinar
Post Reply