Where to put /file

Hi friends,
I know this question is somewhat ridiculous for you who know a lot about scripting, but where would I put the /file in this line:

{
:local file "XXXXXX.txt"
/file
:if ([:len [find where name=$file]] = 0) do={print file=$file; :delay 5s; set $file contents=""}

I want to learn where the /file goes within the above line




EL DONCITO

leave it where is it, outside the :if

:local file "XXXXXX.txt"
:if ([:len [/file find where name=$file]] = 0) do={/file print file=$file; :delay 5s; /file set $file contents=""}

Than you REX.




EL DONCITO.