Remove all errors, and not erros, on syntax…
:global WANIP
:local cloudStatus [/ip cloud get status]
:local currentWANIP $WANIP
:if ($cloudStatus = "updated") do={ :set currentWANIP [/ip cloud get public-address] }
:if ($currentWANIP != $WANIP) do={
/tool fetch src-address=<WAN IP> keep-result=no \
url="https://<your account data>@ipv4.tunnelbroker.net/nic/update\3Fhostname=<tunnel ID>"
:set WANIP $currentWANIP
:log info "Updated TunnelBroker EndPoint - $currentWANIP"
}