Zenon logic

Zenon logic

Dear Wolfgang 

Do you remember when asked about how to group alarms in one general alarm and the timestamp of this alarm is taken from the last changed input alarm, and you send a code snippet in Zenon logic that does this task, but when I tried to compile the code, I found errors that I cleared some of them, but there are still other errors that I can't clear as this one

if varNameToBOOL(nameVar1, newVar1) then RETURN; // variable with this name is not present as an I/O variable or has no BOOL value
end_if;

What is the meaning of varNameToBOOL, and how do I declare it in Zenon logic? I put the code snippet in UFDB. I attach you the code snippet. 
Best regards 
Ahmed