need more knowledge about this syntax

Hey everyone, I’m new to Mikrotik and I’m trying to get a better understanding of it. I’m wondering why this script has different syntax but the same output. Is there anyone who can explain it to me? thank you

:local uptimeuser [/ip hotspot user get [find where name=$user] uptime];



:local uptimeuser [/ip hotspot user get name=$user uptime];

the first is wrong, because find results is one array, and get do not accept arrays as parameters.

Coincidentally if exist only one possible results from find, it work, because pass only one array with one single item

Thank you very much sir rex. what about this.

:local aUsrNote [/ip hotspot user get name=$user comment];



:local aUsrNote [/ip hotspot user get name="$user" comment];



:local aUsrNote [/ip hotspot user get name="$username" comment];

a little confuse with " ", $user and $username

You can also call them pippo and pluto, they are just the names of two variables.

thanks @rextended