Scripting: Syntax requestion - return

Advanced Renamer forum
#1 : 22/11-12 19:22
Posts: 29
what is the correct return syntax:

item.newName = localNewName;
return localNewName;

is the first assign

<code> item.newName = localNewName; </code>

required? i have coded it or commented out: both the same.


22/11-12 19:22
#2 : 23/11-12 20:54
Kim Jensen
Kim Jensen
Posts: 772
Reply to #1:
Initially the result of those two statements were identical. Though there is a difference today. Only the return localNewName; will take the Apply To combobox value into consideration. I will recommend to the return localNewName;.

23/11-12 20:54