Hi
Need help with the script to delete hotspot users after reaching uptime, the script below doesn't work and it gives me an error as shown in the attachment.
--------------------
/ system script add name="delete user" source={
:foreach i in [/ip hotspot user where uptime=$time and limit-uptime=$time] do={
:if ([/ip hotspot user get $i limit-uptime]<=[/ip hotspot user get $i uptime]) do={
/ip hotspot user remove $i;
}
}
----------------------------
also need to script to be run each 1H automatically.