Output without duplicate script .. IMPORTANT

Hi.
I need to get report of users that active on the specific day and send via email or telegram. But I have a little problem :confused:.
I used this script:


{:local u;
:foreach s in=[/tool user-manager session find from-time~“aug/28/2024”] do={
:local u2 ([/tool user-manager session get $s user]);
:if ([:len [/tool user-manager find user=$u2 and !(from-time~“aug/28/2024”)]]=“0”) do={
:set u ($u2);
}
:put $u }}


So I got Output:

65542381
65542381
11231a77
sedy111
11231a77
65542381
… ect


The result is correct, but some item is duplicate because there are more than session of the same user :upside_down_face:.

PLEASE HELLLLLLP

Can I get data of first session only foreach user??

I want output without duplicate items.

PLEASE HELP ME :folded_hands:

HELLLLLP!