var %tmp $+($logdir, $mklogfn($active))
if (!$isfile(%tmp)) { echo -a TEXT HERE }
else { do commands }

The first line sets a local variable, the second line checks if the file doesn't exsist, if it doesn't, echo's whatever text you want, the third line does the commands you specify if the file does exsist