Scripting: Syntax requestion - return

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

<code>
//script-end:
item.newName = localNewName;
return localNewName;
</code>


is the first assign

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

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

----------
neo


22/11-12 19:22
#2 : 23/11-12 20:54
Kim Jensen
Kim Jensen
Administrator
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